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.
BorderBrush
The Brush that specifies how the tab's outline is painted.
BorderThickness
The width of the tab's outline.
CornerRadius
The corner radius of the tab border, relative to a top-facing tab.
FarSlantExtent
The far side slant extent of the tab, or 0.0. for no slant.
FlashColor
The flash color to use if flashing is enabled.
FlashMode
The flash mode for the tab.
IsSelected
Indicates whether the tab is selected.
NearSlantExtent
The near side slant extent of the tab, or 0.0 for no slant.
TabStripPlacement
The side upon which the tabstrip is placed.
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.
UntintedBorderBrush
The untinted Brush that specifies how the tab's outline is painted.
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