WPF: Clicking on a DataGrid Row inside a TreeView does not trigger TreeView.SelectedItemChanged
问题 I am new to WPF, and suffering with an existing code. We have a tree, which has many branches/leaves. In one branch we have a DataGrid. If we click on the empty area of the grid (where no rows are), then TreeView.SelectedItemChanged called properly. In our case, SelectedItem = 'SelectedGridBorder' (see XAML below) But if we click on a row/cell of the grid, row gets focused, but TreeView.SelectedItemChanged is NOT called. So TreeView.SelectedItem is still the previously selected item. Is is