title: In C# WPF, why is my TabControl's SelectionChanged event firing too often?
body: <p>I have a tabbed GUI with each tab containing a Frame. In one of these Frames there is a DataGrid. When the user selects this tab, I need my datagrid sorted, so I'm using the TabControl SelectionChanged event to trigger the sort. However, this event triggers every time an item is selected from the DataGrid, even though the tabs themselves remain untouched.</p>
  
  <p>I've tried number of different events:
  GotFocus for a TabItem
  RequestBringIntoView for a TabItem</p>
  
  <p>but they all seem to suffer from this problem. What is causing this?</p>