SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
I am working with Wpf on window.
I have defined a legend modifier with a template.
<s:ModifierGroup>
<s:LegendModifier
ShowLegend="True"
Orientation="Horizontal"
Margin="20"
LegendPlacement="Inside"
LegendItemTemplate="{DynamicResource TopDownLegendTemplate}"
GetLegendDataFor="AllSeries"
ShowVisibilityCheckboxes="True"/>
</s:ModifierGroup>
Always, when the chart is rendered, the legend is not (see legendOff.PNG)
Most times, after some chart updates (e.g by moving a slider that affects the data displayed), the legend comes back on (see legendOn.PNG)
Always, when the legend is rendered, then it will stay rendered.
A similar code is elsewhere in my project and does not give this problem so I can’t say for sure it is a bug. It certainly is an unexpected behavior.
Another piece of useful information is that my template uses a converter in the xaml code. I have put a breakpoint in this converter and verified the code is not being called (hence nothing is trying to render the legend) when the chart is rendered.
Any idea?
Please login first to submit.