Gets the content of the currently selected TabItem.
Assembly: PresentationFramework (in PresentationFramework.dll)
The ControlTemplate of the TabControl uses the ContentPresenter.ContentSource property to bind the ContentPresenter.Content property to this property. If you create a new ControlTemplate for the TabControl, be sure to the bind the ContentPresenter.Content property to this property by setting the ContentPresenter.ContentSource property to "SelectedContent" or by using TemplateBinding Markup Extension.
Legacy Code Example
The following example uses the Person in the currently selected TabItem.property to get the Code snippet is not found. Confirm that the code snippet name 'TabControlContentTemplateSelector' is correct.
The following example creates a ControlTemplate for the TabControl. Setting the ContentSource property to "SelectedContent" creates aliases to the , SelectedContentTemplate, and SelectedContentTemplateSelector properties.Code snippet is not found. Confirm that the code snippet name 'ControlTemplateExamples' is correct.Code snippet is not found. Confirm that the code snippet name 'TabControlContentTemplate_snip' is correct.
Available since 3.0
Available since 2.0