How can I only show Legends when the corresponding RenederableSeries is visible.
If the corresponding RenderableSeries is not visible then that Legend shouldn’t be shown.
Keep in mind my users will be able to hide and show RenderableSeries during runtime.
My xaml code is:
<s:LegendModifier x:Name="legendModifier" ShowVisibilityCheckboxes="False" Orientation="Vertical" ShowLegend="{Binding ParentViewModel.ShowLegends, Mode=TwoWay}" Margin="10" />
<s:SeriesSelectionModifier>
<s:SeriesSelectionModifier.SelectedSeriesStyle>
<Style TargetType="s:BaseRenderableSeries">
<Setter Property="StrokeThickness" Value="3"/>
</Style>
</s:SeriesSelectionModifier.SelectedSeriesStyle>
</s:SeriesSelectionModifier>
- David Mecteaux asked 9 years ago
- You must login to post comments
Hi David,
If you take a look at our ChartLegends example, you could find similar behavior if you choose “SelectedSeries” from the LegendSource dropdown. It is configurable via the GetLegendDataFor property.
Hope this helps,
Best regards,
Yuriy
- Guest answered 9 years ago
- You must login to post comments
Please login first to submit.