WPF: DataTrigger bound to a ContextMenu MenuItem works only once
问题 I am trying to hide colummns in a Datagrid (bound to a DataTable ) with DataTrigger . So that the user can choose which columns are displayed. My problem is that this only works once. Normaly I would say that I need the INotifyPropertyChanged , however my ContextMenu is defined in XAML so I am not sure if and how to do that. Here my XAML <ContextMenu > .... <MenuItem Header="Apply" x:Name="ButtonApply" /> </ContextMenu> <DataGrid ItemsSource="{Binding Path=TabDataTable}" AutoGenerateColumns=