Hard to say without seeing your XAML, but you could bind each CheckBox
's IsChecked
property to the same thing:
<CheckBox.IsChecked>
<MultiBinding Converter="{StaticResource MyConverter}">
<Binding Path="."/>
<Binding Path="SelectedItem" RelativeSource="..."/>
</MultiBinding>
</CheckBox.IsChecked>
The converter (IMultiValueConverter
) would then determine whether the first value matches the selected value, and return true/false accordingly.
HTH, Kent
Kent Boogaart
2009-06-29 16:14:21