I am using Silverlight's StackedColumnSeries toolkit to display some data. I am trying to create a list of flags, each of which is tied to the visibility of a certain series, but the visibility does not change. I implemented the BooleanToVisibility converter, and it reports correctly and the object reports that its visibility is crashing, but the user interface of the chart does not change. I am currently trying to do this completely in xaml
Here is the checkmark and chart in xaml:
<CheckBox x:Name="ui_CheckBox">Box</CheckBox>
<chartingToolkit:Chart Title="Errors x:Name="x_ErrorChart">
<chartingToolkit:Chart.Series>
<chartingToolkit:StackedColumnSeries>
<chartingToolkit:SeriesDefinition
ItemsSource="{Binding Path=.}"
IndependentValueBinding="{Binding Path=Day, StringFormat='MM/dd'}"
DependentValueBinding="{Binding Data1}"
Title="Data1"
Visibility="{Binding IsChecked, ElementName=ui_CheckBox, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<chartingToolkit:SeriesDefinition
ItemsSource="{Binding Path=.}"
IndependentValueBinding="{Binding Path=Day, StringFormat='MM/dd'}"
DependentValueBinding="{Binding Data2}"
Title="Data2" />
...
I also tried explicitly setting Visibility to Collapsed in SeriesDefinition, and it does the same. Is this the missing piece of toolkit, or am I doing something wrong?
thank
a lion