Redigera

Dela via


TabControl.OnSelectionChanged(SelectionChangedEventArgs) Method

Definition

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

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.

Applies to