I need to change the Datagrid columns visibility from context menu inside the header. All the columns visibility were set inside the XAML code by default.
<DataGridTextColumn Visibility="Visible" Binding="{Binding Story}" Header="Story" />
I don't want to bind each column visibility from the ViewModel. I want is to set all the columns visibility to Visible if all of the columns were hidden, and vice versa. all from the XAML code without binding the visibility inside the column code.