TabControl.OnSelectionChanged(SelectionChangedEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raises the SelectionChanged routed event.
protected:
override void OnSelectionChanged(System::Windows::Controls::SelectionChangedEventArgs ^ e);
protected override void OnSelectionChanged (System.Windows.Controls.SelectionChangedEventArgs e);
override this.OnSelectionChanged : System.Windows.Controls.SelectionChangedEventArgs -> unit
Protected Overrides Sub OnSelectionChanged (e As SelectionChangedEventArgs)
Parameters
Provides data for SelectionChangedEventArgs.
Remarks
The TabControl updates the SelectedContent, SelectedContentTemplate, and SelectedContentTemplateSelector properties to the objects used by the currently selected TabItem.
The control raises the SelectionChanged event by calling RaiseEvent. For more information, see Routed Events Overview.
Notes to Inheritors
When overriding OnSelectionChanged(SelectionChangedEventArgs) in a derived class, be sure to call the base class' OnSelectionChanged(SelectionChangedEventArgs) method so that registered delegates receive the event.