Renders a border for a tab item.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Decorator object
Constructors
TabItemBorder()
Initializes an instance of the class.
Properties
Background
Gets or sets 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.
BorderThickness
Gets or sets the width of the tab's outline.
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.
Property Value
- Corner
Radius : 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.
Property Value
- double:
The far side slant extent of the tab, or
0.0
for no slant. The default value is0.0
.
FlashColor
Gets or sets the flash color to use if flashing is enabled.
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.
Property Value
- Tab
Flash :Mode The flash mode for the tab.
IsSelected
Gets or sets whether the tab is selected.
Property Value
- bool:
true
if the tab is selected; otherwise,false
.
NearSlantExtent
Gets or sets the near side slant extent of the tab.
Property Value
- double:
The near side slant extent of the tab, or
0.0
for no slant. The default value is0.0
.
TabStripPlacement
Gets or sets the side upon which the tabstrip is placed.
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.
Property Value
- Color:
The tint color applied to the
Background
andBorderBrush
brushes. The default value isTransparent
, which indicates no tinting should be applied.
UntintedBackground
Gets or sets 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.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a Framework
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.
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.
Parameter | Type | Description |
---|---|---|
drawingContext | Drawing |
The Drawing |
Fields
BackgroundProperty
Identifies the Background dependency property. This field is read-only.
BorderBrushProperty
Identifies the Border
BorderThicknessProperty
Identifies the Border
CornerRadiusProperty
Identifies the Corner
FarSlantExtentProperty
Identifies the Far
FlashColorProperty
Identifies the Flash
FlashModeProperty
Identifies the Flash
IsSelectedProperty
Identifies the Is
NearSlantExtentProperty
Identifies the Near
TabStripPlacementProperty
Identifies the Tab
TintColorProperty
Identifies the Tint
UntintedBackgroundProperty
Identifies the Untinted
UntintedBorderBrushProperty
Identifies the Untinted