I want to bind the IsVisible property of a GridViewDataColumn to the IsChecked property of a RadMenuItem in a user control. I tried two approaches, but neither worked:
<
nav:RadMenuItem x:Name="visCust" Header="{Binding Path='[Customer name]', Mode=OneTime, Source={StaticResource Localization}}" IsCheckable="True" IsChecked="True"/>
And further down in my XAML:
<
grid:GridViewDataColumn IsReadOnly="True" Header="Customer" UniqueName="CustomerName" IsVisible="{Binding ElementName=visCust, Path=IsChecked}" />
I also tried the reverse:
<nav:RadMenuItem x:Name="visStat" Header="{Binding Path='[Status]', Mode=OneTime, Source={StaticResource Localization}}" IsCheckable="True" IsChecked="{Binding ElementName=grdStat, Path=IsVisible, Mode=TwoWay}" />
And further down in my XAML:
<
grid:GridViewDataColumn x:Name="grdStat" Header="Status" Width="90" UniqueName="AlertFlag" >