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

Gets or sets the Brush that specifies how the tab's interior is painted.

public Brush Background { get; set; }

Property Value

Brush:

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

BorderBrush

Gets or sets the Brush that specifies how the tab's outline is painted.

public Brush BorderBrush { get; set; }

Property Value

Brush:

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

BorderThickness

Gets or sets the width of the tab's outline.

public Thickness BorderThickness { get; set; }

Property Value

Thickness:

The width of the tab's outline.

CornerRadius

Gets or sets the corner radius of the tab border, relative to a top-facing tab.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius:

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

FarSlantExtent

Gets or sets the far side slant extent of the tab.

public double FarSlantExtent { get; set; }

Property Value

double:

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

FlashColor

Gets or sets the flash color to use if flashing is enabled.

public Color FlashColor { get; set; }

Property Value

Color:

The flash color to use if flashing is enabled. The default value is #80FFA000.

FlashMode

Gets or sets the flash mode for the tab.

public TabFlashMode FlashMode { get; set; }

Property Value

TabFlashMode:

The flash mode for the tab.

IsSelected

Gets or sets whether the tab is selected.

public bool IsSelected { get; set; }

Property Value

bool:

true if the tab is selected; otherwise, false.

NearSlantExtent

Gets or sets the near side slant extent of the tab.

public double NearSlantExtent { get; set; }

Property Value

double:

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

TabStripPlacement

Gets or sets the side upon which the tabstrip is placed.

public Dock TabStripPlacement { get; set; }

Property Value

Dock:

The side upon which the tabstrip is placed.

TintColor

Gets or sets the tint color applied to the Background and BorderBrush brushes.

public Color TintColor { get; set; }

Property Value

Color:

The tint color applied to the Background and BorderBrush brushes. The default value is Transparent, which indicates no tinting should be applied.

UntintedBackground

Gets or sets the untinted Brush that specifies how the tab's interior is painted.

public Brush UntintedBackground { get; set; }

Property Value

Brush:

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

UntintedBorderBrush

Gets or sets the untinted Brush that specifies how the tab's outline is painted.

public Brush UntintedBorderBrush { get; set; }

Property Value

Brush:

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

Methods

ArrangeOverride(Size)

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

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

The final area within the parent that this element should use to arrange itself and its children.

Returns

Size:

The actual size used.

MeasureOverride(Size)

Measures all children given an available size and returns the element's desired size based on the size of its children.

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

The size the element is suggested to fit inside.

Returns

Size:

The desired size of the element.

OnRender(DrawingContext)

Occurs when the element is rendered.

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

The DrawingContext to use.

Fields

BackgroundProperty

Identifies the Background dependency property. This field is read-only.

public static readonly DependencyProperty BackgroundProperty

BorderBrushProperty

Identifies the BorderBrush dependency property. This field is read-only.

public static readonly DependencyProperty BorderBrushProperty

BorderThicknessProperty

Identifies the BorderThickness dependency property. This field is read-only.

public static readonly DependencyProperty BorderThicknessProperty

CornerRadiusProperty

Identifies the CornerRadius dependency property. This field is read-only.

public static readonly DependencyProperty CornerRadiusProperty

FarSlantExtentProperty

Identifies the FarSlantExtent dependency property. This field is read-only.

public static readonly DependencyProperty FarSlantExtentProperty

FlashColorProperty

Identifies the FlashColor dependency property. This field is read-only.

public static readonly DependencyProperty FlashColorProperty

FlashModeProperty

Identifies the FlashMode dependency property. This field is read-only.

public static readonly DependencyProperty FlashModeProperty

IsSelectedProperty

Identifies the IsSelected dependency property. This field is read-only.

public static readonly DependencyProperty IsSelectedProperty

NearSlantExtentProperty

Identifies the NearSlantExtent dependency property. This field is read-only.

public static readonly DependencyProperty NearSlantExtentProperty

TabStripPlacementProperty

Identifies the TabStripPlacement dependency property. This field is read-only.

public static readonly DependencyProperty TabStripPlacementProperty

TintColorProperty

Identifies the TintColor dependency property. This field is read-only.

public static readonly DependencyProperty TintColorProperty

UntintedBackgroundProperty

Identifies the UntintedBackground dependency property. This field is read-only.

public static readonly DependencyProperty UntintedBackgroundProperty

UntintedBorderBrushProperty

Identifies the UntintedBorderBrush dependency property. This field is read-only.

public static readonly DependencyProperty UntintedBorderBrushProperty