DataGrid.ColumnHeaderStyle and Command Binding
问题 In the XAML below, the command property is correctly working only with Column B. Clicking on Column A's header is not invoking command's execute method. The difference is that in Column B, DataGridColumnHeader is instantiated explicitly. On other hand, the second part of style, the trigger that sets background base on Pressed state is working for both columns. Why does the Command property work with Column B & not with Column A ? <DataGrid x:Name="Test" ItemsSource="{Binding Items}"