In This Article

TabItemBorder Class

Renders a border for a tab item.

public class TabItemBorder : Decorator
Inheritance:
object Visual UIElement FrameworkElement Decorator object

Constructors

TabItemBorder()

Initializes an instance of the class.

public TabItemBorder()

Properties

Background

The Brush that specifies how the tab's interior is painted.

public Brush? Background { get; set; }

Property Value

Brush

BorderBrush

The Brush that specifies how the tab's outline is painted.

public Brush? BorderBrush { get; set; }

Property Value

Brush

BorderThickness

The width of the tab's outline.

public Thickness BorderThickness { get; set; }

Property Value

Thickness

CornerRadius

The corner radius of the tab border, relative to a top-facing tab.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

FarSlantExtent

The far side slant extent of the tab, or 0.0. for no slant.

public double FarSlantExtent { get; set; }

Property Value

double:

The default value is 0.0.

FlashColor

The flash color to use if flashing is enabled.

public Color FlashColor { get; set; }

Property Value

Color:

The default value is #80FFA000.

FlashMode

The flash mode for the tab.

public TabFlashMode FlashMode { get; set; }

Property Value

TabFlashMode

IsSelected

Indicates whether the tab is selected.

public bool IsSelected { get; set; }

Property Value

bool

NearSlantExtent

The near side slant extent of the tab, or 0.0 for no slant.

public double NearSlantExtent { get; set; }

Property Value

double:

The default value is 0.0.

TabStripPlacement

The side upon which the tabstrip is placed.

public Dock TabStripPlacement { get; set; }

Property Value

Dock

TintColor

The tint color applied to the Background and BorderBrush brushes.

public Color TintColor { get; set; }

Property Value

Color:

The default value is Transparent, which indicates no tinting should be applied.

UntintedBackground

The untinted Brush that specifies how the tab's interior is painted.

public Brush? UntintedBackground { get; set; }

Property Value

Brush

UntintedBorderBrush

The untinted Brush that specifies how the tab's outline is painted.

public Brush? UntintedBorderBrush { get; set; }

Property Value

Brush

Methods

ArrangeOverride(Size)

Arranges the content of a Decorator element.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

Returns

Size:

The System.Windows.Size that represents the arranged size of this Decorator element and its child.

MeasureOverride(Size)

Measures the child element of a Decorator to prepare for arranging it during the ArrangeOverride(Size) pass.

protected override Size MeasureOverride(Size availableSize)
Parameter Type Description
availableSize Size

Returns

Size:

The target System.Windows.Size of the element.

OnRender(DrawingContext)

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

protected override void OnRender(DrawingContext drawingContext)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

Fields

BackgroundProperty

Defines the Background property.

public static readonly DependencyProperty BackgroundProperty

BorderBrushProperty

Defines the BorderBrush property.

public static readonly DependencyProperty BorderBrushProperty

BorderThicknessProperty

Defines the BorderThickness property.

public static readonly DependencyProperty BorderThicknessProperty

CornerRadiusProperty

Defines the CornerRadius property.

public static readonly DependencyProperty CornerRadiusProperty

FarSlantExtentProperty

Defines the FarSlantExtent property.

public static readonly DependencyProperty FarSlantExtentProperty

FlashColorProperty

Defines the FlashColor property.

public static readonly DependencyProperty FlashColorProperty

FlashModeProperty

Defines the FlashMode property.

public static readonly DependencyProperty FlashModeProperty

IsSelectedProperty

Defines the IsSelected property.

public static readonly DependencyProperty IsSelectedProperty

NearSlantExtentProperty

Defines the NearSlantExtent property.

public static readonly DependencyProperty NearSlantExtentProperty

TabStripPlacementProperty

Defines the TabStripPlacement property.

public static readonly DependencyProperty TabStripPlacementProperty

TintColorProperty

Defines the TintColor property.

public static readonly DependencyProperty TintColorProperty

UntintedBackgroundProperty

Defines the UntintedBackground property.

public static readonly DependencyProperty UntintedBackgroundProperty

UntintedBorderBrushProperty

Defines the UntintedBorderBrush property.

public static readonly DependencyProperty UntintedBorderBrushProperty

Extension Methods