HypernovaDesktop Components · docs
Binarymission
WPF › Tab Control › TabControlResources

TabControlResources

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Containers.SharedResources

The resource keys of the colours TabControl is drawn with, one for each of its brush properties, so that an application can restyle every tab control at once from its own resources.

public static class TabControlResources

Remarks

The default style sets each brush property from its key with DynamicResource. The control's theme defines every key except TabStripBackgroundBrushKey with its own colours, and a Binarymission skin in force (Binarymission.WPF.Skinning.BinarySkinManager) defines them all again. Define a key in App.xaml and every tab control in the application takes that colour; a brush set on one control wins over both.

Examples

<Application.Resources>
    <SolidColorBrush x:Key="{x:Static tabRes:TabControlResources.TabItemAccentBrushKey}" Color="#0F6CBD" />
    <SolidColorBrush x:Key="{x:Static tabRes:TabControlResources.TabControlBackgroundBrushKey}" Color="White" />
</Application.Resources>

with xmlns:tabRes="clr-namespace:Binarymission.WPF.Controls.Containers.SharedResources;assembly=Binarymission.WPF.Controls.TabControl".

Members at a glance

Properties
AddNewItemButtonBackgroundBrushKeyGets the key of the default colour of the add-new-tab button's background.
AddNewItemContentBrushKeyGets the key of the default colour of the plus sign on the add-new-tab button.
ButtonLeftArrowGeometryPathFillBrushKeyGets the key of the default colour of the arrow on the scroll-left button.
ButtonLeftArrowGeometryPathStrokeBrushKeyGets the key of the default colour of the outline of the arrow on the scroll-left button.
ButtonRightArrowGeometryPathFillBrushKeyGets the key of the default colour of the arrow on the scroll-right button.
ButtonRightArrowGeometryPathStrokeBrushKeyGets the key of the default colour of the outline of the arrow on the scroll-right button.
CloseButtonCrossMarkColorBrushKeyGets the key of the default colour of the cross on each tab's close button.
CloseButtonStrokeBrushKeyGets the key of the default colour of the outline of the cross on each tab's close button.
ScrollButtonBrushKeyGets the key of the default colour of the background of the scroll buttons.
ScrollButtonOnMouseOverBrushKeyGets the key of the default colour of the background of a scroll button under the pointer.
TabControlBackgroundBrushKeyGets the key of the default colour of the background of the page area.
TabItemAccentBrushKeyGets the key of the default colour of the accent of the selected tab in the modern rendering modes.
TabItemAccentForegroundBrushKeyGets the key of the default colour of text drawn on the accent colour.
TabItemBorderBrushKeyGets the key of the default colour of the outline of the tabs and of the page area.
TabItemBorderOnMouseOverBrushKeyGets the key of the default colour of the outline of a tab under the pointer.
TabItemCloseButtonFillOnMouseOverBrushKeyGets the key of the default colour of the cross on a close button under the pointer.
TabItemFillOnMouseOverBrushKeyGets the key of the default colour of the fill of a tab under the pointer.
TabItemPathBrushKeyGets the key of the default colour of the fill of the tabs that are not selected.
TabItemSelectedFillBrushKeyGets the key of the default colour of the fill of the selected tab.
TabItemTextForegroundBrushKeyGets the key of the default colour of the tabs' header text.
TabStripBackgroundBrushKeyGets the key of the default colour behind the tab headers.

Properties

AddNewItemButtonBackgroundBrushKey static

public static ComponentResourceKey AddNewItemButtonBackgroundBrushKey

Gets the key of the default colour of the add-new-tab button's background.

Value
The key the default style sets TabControl.AddNewItemButtonBackground from. The theme defines it as moccasin.

AddNewItemContentBrushKey static

public static ComponentResourceKey AddNewItemContentBrushKey

Gets the key of the default colour of the plus sign on the add-new-tab button.

Value
The key the default style sets TabControl.AddNewItemContentBrush from. The theme defines it as black.

ButtonLeftArrowGeometryPathFillBrushKey static

public static ComponentResourceKey ButtonLeftArrowGeometryPathFillBrushKey

Gets the key of the default colour of the arrow on the scroll-left button.

Value
The key the default style sets TabControl.ButtonLeftArrowGeometryPathFillBrush from. The theme defines it as black.

ButtonLeftArrowGeometryPathStrokeBrushKey static

public static ComponentResourceKey ButtonLeftArrowGeometryPathStrokeBrushKey

Gets the key of the default colour of the outline of the arrow on the scroll-left button.

Value
The key the default style sets TabControl.ButtonLeftArrowGeometryPathStrokeBrush from. The theme defines it as black.

ButtonRightArrowGeometryPathFillBrushKey static

public static ComponentResourceKey ButtonRightArrowGeometryPathFillBrushKey

Gets the key of the default colour of the arrow on the scroll-right button.

Value
The key the default style sets TabControl.ButtonRightArrowGeometryPathFillBrush from. The theme defines it as black.

ButtonRightArrowGeometryPathStrokeBrushKey static

public static ComponentResourceKey ButtonRightArrowGeometryPathStrokeBrushKey

Gets the key of the default colour of the outline of the arrow on the scroll-right button.

Value
The key the default style sets TabControl.ButtonRightArrowGeometryPathStrokeBrush from. The theme defines it as black.

CloseButtonCrossMarkColorBrushKey static

public static ComponentResourceKey CloseButtonCrossMarkColorBrushKey

Gets the key of the default colour of the cross on each tab's close button.

Value
The key the default style sets TabControl.CloseButtonCrossMarkColorBrush from. The theme defines it as maroon.

CloseButtonStrokeBrushKey static

public static ComponentResourceKey CloseButtonStrokeBrushKey

Gets the key of the default colour of the outline of the cross on each tab's close button.

Value
The key the default style sets TabControl.CloseButtonStrokeBrush from. The theme defines it as dark grey.

ScrollButtonBrushKey static

public static ComponentResourceKey ScrollButtonBrushKey

Gets the key of the default colour of the background of the scroll buttons.

Value
The key the default style sets TabControl.ScrollButtonBrush from. The theme defines it as an orange-to-cream gradient.

ScrollButtonOnMouseOverBrushKey static

public static ComponentResourceKey ScrollButtonOnMouseOverBrushKey

Gets the key of the default colour of the background of a scroll button under the pointer.

Value
The key the default style sets TabControl.ScrollButtonOnMouseOverBrush from. The theme defines it as an orange-to-cream gradient running left to right.

TabControlBackgroundBrushKey static

public static ComponentResourceKey TabControlBackgroundBrushKey

Gets the key of the default colour of the background of the page area.

Value
The key the default style sets TabControl.TabControlBackground from. The theme defines it as a moccasin-to-white gradient.

TabItemAccentBrushKey static

public static ComponentResourceKey TabItemAccentBrushKey

Gets the key of the default colour of the accent of the selected tab in the modern rendering modes.

Value
The key the default style sets TabControl.TabItemAccentBrush from. The theme defines it as blue (#2B6CD4).

TabItemAccentForegroundBrushKey static

public static ComponentResourceKey TabItemAccentForegroundBrushKey

Gets the key of the default colour of text drawn on the accent colour.

Value
The key the default style sets TabControl.TabItemAccentForeground from. The theme defines it as white.

TabItemBorderBrushKey static

public static ComponentResourceKey TabItemBorderBrushKey

Gets the key of the default colour of the outline of the tabs and of the page area.

Value
The key the default style sets TabControl.TabItemBorderBrush from. The theme defines it as white.

TabItemBorderOnMouseOverBrushKey static

public static ComponentResourceKey TabItemBorderOnMouseOverBrushKey

Gets the key of the default colour of the outline of a tab under the pointer.

Value
The key the default style sets TabControl.TabItemBorderOnMouseOverBrush from. The theme defines it as white.

TabItemCloseButtonFillOnMouseOverBrushKey static

public static ComponentResourceKey TabItemCloseButtonFillOnMouseOverBrushKey

Gets the key of the default colour of the cross on a close button under the pointer.

Value
The key the default style sets TabControl.TabItemCloseButtonFillOnMouseOverBrush from. The theme defines it as red.

TabItemFillOnMouseOverBrushKey static

public static ComponentResourceKey TabItemFillOnMouseOverBrushKey

Gets the key of the default colour of the fill of a tab under the pointer.

Value
The key the default style sets TabControl.TabItemFillOnMouseOverBrush from. The theme defines it as a tomato-to-white gradient.

TabItemPathBrushKey static

public static ComponentResourceKey TabItemPathBrushKey

Gets the key of the default colour of the fill of the tabs that are not selected.

Value
The key the default style sets TabControl.TabItemPathBrush from. The theme defines it as a gold-to-white gradient.

TabItemSelectedFillBrushKey static

public static ComponentResourceKey TabItemSelectedFillBrushKey

Gets the key of the default colour of the fill of the selected tab.

Value
The key the default style sets TabControl.TabItemSelectedFill from. The theme defines it as an orange-to-cream gradient.

TabItemTextForegroundBrushKey static

public static ComponentResourceKey TabItemTextForegroundBrushKey

Gets the key of the default colour of the tabs' header text.

Value
The key the default style sets TabControl.TabItemTextForeground from. The theme defines it as black.

TabStripBackgroundBrushKey static

public static ComponentResourceKey TabStripBackgroundBrushKey

Gets the key of the default colour behind the tab headers.

Value
The key the default style sets TabControl.TabStripBackground from. The theme does not define it, so the strip has no fill until a skin or the application defines the key.