Hi,
when I set chartGraph.Legend.Visible to true I get warning in my console. How can I fix this problem?
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='LegendBorderBrush'System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='LegendBorderSecondaryBrush'
Thanks for helping!
Gawain
The legend should be visible by default, without having to set Visible to true. I'm not seeing any warning when I set it to either true of false. Are you getting those in the designer? Can you provide a more complete code sample?
I found out it has something to do with the theme.
chartGraph.Theme = "Neon";chartGraph.Legend.Visible = true;
When I don't set the Theme, the message does not appear. It comes with all themes I've tested...
Do you have any idea?
That seems strange. What's the version and build of xamChart? Can you make sure you're using the latest version of the controls?
I'm using this code:<ig:XamChart Name="chart"/>
private void Window_Loaded(object sender, RoutedEventArgs e){ chart.Theme = "Neon";}
and I get a chart with a legend and default data that looks like this:
Sorry, wasn't that clear in my words I guess. I'm also getting this chart, but in my Console I get the messages I wrote above.
I have the latest service release installed: NetAdvantage_WPF_20103.2164_SR
My debug output window didn't contain any resource-related warnings. What build of the Infragistics controls are you using?
By "Console" I mean the debug output window of my Visual Studio.
By "Console" do you mean the Output window, or are you running a console application? I think it'll be easier to debug this if you attached a sample project.