TabItem (Clase)
.NET Framework 3.5
Actualización: noviembre 2007
Representa un elemento seleccionable dentro de TabControl.
Ensamblado: PresentationFramework (en PresentationFramework.dll)
XMLNS para XAML: http://schemas.microsoft.com/winfx/xaml/presentation
Modelo de contenido: TabItem es un HeaderedContentControl. Su propiedad de contenido es Content y su propiedad de encabezado es Header. Para obtener más información acerca del modelo de contenido de TabItem, vea Información general sobre el modelo de contenido de controles.
En el ejemplo siguiente se muestra cómo crear TabControl con elementos TabItem.
<TabControl TabStripPlacement="Top" Margin="0, 0, 0, 10"> <TabItem Name="tabIitemContent" Header="TabItem with Buttons"> <StackPanel> <Button Content="_OK"/> <Button Content="_Cancel"/> </StackPanel> </TabItem> <TabItem Name="backgroundcolor" Header="Background"> <TabItem.Content>Background property information goes here.</TabItem.Content> </TabItem> <TabItem Name="foregroundcolor" Header="Foreground"> <TabItem.Content>Foreground property information goes here.</TabItem.Content> </TabItem> <TabItem Name="bordercolor" Header="BorderColor"> <TabItem.Content>Border color property information goes here.</TabItem.Content> </TabItem> </TabControl>
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
System.Windows.Controls.HeaderedContentControl
System.Windows.Controls.TabItem
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
System.Windows.Controls.HeaderedContentControl
System.Windows.Controls.TabItem
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.