Export (0) Print
Expand All

TabControl.SelectedContentTemplate Property

This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets and sets the content template of the currently selected item.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public DataTemplate SelectedContentTemplate { get; }
/** @property */
public DataTemplate get_SelectedContentTemplate ()

public function get SelectedContentTemplate () : DataTemplate

You cannot use this property in XAML.

Property Value

Returns the template of the selected item.

This property is updated when the selection changes.

The SelectedContentTemplate property is set internally when the selection changes. It gets the ContentTemplate of the tab item.

The following examples show a ContentTemplate property in a TabControl style. The second example is the content template.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft