TabControlResources
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 | |
|---|---|
AddNewItemButtonBackgroundBrushKey | Gets the key of the default colour of the add-new-tab button's background. |
AddNewItemContentBrushKey | Gets the key of the default colour of the plus sign on the add-new-tab button. |
ButtonLeftArrowGeometryPathFillBrushKey | Gets the key of the default colour of the arrow on the scroll-left button. |
ButtonLeftArrowGeometryPathStrokeBrushKey | Gets the key of the default colour of the outline of the arrow on the scroll-left button. |
ButtonRightArrowGeometryPathFillBrushKey | Gets the key of the default colour of the arrow on the scroll-right button. |
ButtonRightArrowGeometryPathStrokeBrushKey | Gets the key of the default colour of the outline of the arrow on the scroll-right button. |
CloseButtonCrossMarkColorBrushKey | Gets the key of the default colour of the cross on each tab's close button. |
CloseButtonStrokeBrushKey | Gets the key of the default colour of the outline of the cross on each tab's close button. |
ScrollButtonBrushKey | Gets the key of the default colour of the background of the scroll buttons. |
ScrollButtonOnMouseOverBrushKey | Gets the key of the default colour of the background of a scroll button under the pointer. |
TabControlBackgroundBrushKey | Gets the key of the default colour of the background of the page area. |
TabItemAccentBrushKey | Gets the key of the default colour of the accent of the selected tab in the modern rendering modes. |
TabItemAccentForegroundBrushKey | Gets the key of the default colour of text drawn on the accent colour. |
TabItemBorderBrushKey | Gets the key of the default colour of the outline of the tabs and of the page area. |
TabItemBorderOnMouseOverBrushKey | Gets the key of the default colour of the outline of a tab under the pointer. |
TabItemCloseButtonFillOnMouseOverBrushKey | Gets the key of the default colour of the cross on a close button under the pointer. |
TabItemFillOnMouseOverBrushKey | Gets the key of the default colour of the fill of a tab under the pointer. |
TabItemPathBrushKey | Gets the key of the default colour of the fill of the tabs that are not selected. |
TabItemSelectedFillBrushKey | Gets the key of the default colour of the fill of the selected tab. |
TabItemTextForegroundBrushKey | Gets the key of the default colour of the tabs' header text. |
TabStripBackgroundBrushKey | Gets the key of the default colour behind the tab headers. |
Properties
AddNewItemButtonBackgroundBrushKey static
Gets the key of the default colour of the add-new-tab button's background.
- Value
- The key the default style sets
TabControl.AddNewItemButtonBackgroundfrom. The theme defines it as moccasin.
AddNewItemContentBrushKey static
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.AddNewItemContentBrushfrom. The theme defines it as black.
ButtonLeftArrowGeometryPathFillBrushKey static
Gets the key of the default colour of the arrow on the scroll-left button.
- Value
- The key the default style sets
TabControl.ButtonLeftArrowGeometryPathFillBrushfrom. The theme defines it as black.
ButtonLeftArrowGeometryPathStrokeBrushKey static
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.ButtonLeftArrowGeometryPathStrokeBrushfrom. The theme defines it as black.
ButtonRightArrowGeometryPathFillBrushKey static
Gets the key of the default colour of the arrow on the scroll-right button.
- Value
- The key the default style sets
TabControl.ButtonRightArrowGeometryPathFillBrushfrom. The theme defines it as black.
ButtonRightArrowGeometryPathStrokeBrushKey static
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.ButtonRightArrowGeometryPathStrokeBrushfrom. The theme defines it as black.
CloseButtonCrossMarkColorBrushKey static
Gets the key of the default colour of the cross on each tab's close button.
- Value
- The key the default style sets
TabControl.CloseButtonCrossMarkColorBrushfrom. The theme defines it as maroon.
CloseButtonStrokeBrushKey static
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.CloseButtonStrokeBrushfrom. The theme defines it as dark grey.
ScrollButtonBrushKey static
Gets the key of the default colour of the background of the scroll buttons.
- Value
- The key the default style sets
TabControl.ScrollButtonBrushfrom. The theme defines it as an orange-to-cream gradient.
ScrollButtonOnMouseOverBrushKey static
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.ScrollButtonOnMouseOverBrushfrom. The theme defines it as an orange-to-cream gradient running left to right.
TabControlBackgroundBrushKey static
Gets the key of the default colour of the background of the page area.
- Value
- The key the default style sets
TabControl.TabControlBackgroundfrom. The theme defines it as a moccasin-to-white gradient.
TabItemAccentBrushKey static
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.TabItemAccentBrushfrom. The theme defines it as blue (#2B6CD4).
TabItemAccentForegroundBrushKey static
Gets the key of the default colour of text drawn on the accent colour.
- Value
- The key the default style sets
TabControl.TabItemAccentForegroundfrom. The theme defines it as white.
TabItemBorderBrushKey static
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.TabItemBorderBrushfrom. The theme defines it as white.
TabItemBorderOnMouseOverBrushKey static
Gets the key of the default colour of the outline of a tab under the pointer.
- Value
- The key the default style sets
TabControl.TabItemBorderOnMouseOverBrushfrom. The theme defines it as white.
TabItemCloseButtonFillOnMouseOverBrushKey static
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.TabItemCloseButtonFillOnMouseOverBrushfrom. The theme defines it as red.
TabItemFillOnMouseOverBrushKey static
Gets the key of the default colour of the fill of a tab under the pointer.
- Value
- The key the default style sets
TabControl.TabItemFillOnMouseOverBrushfrom. The theme defines it as a tomato-to-white gradient.
TabItemPathBrushKey static
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.TabItemPathBrushfrom. The theme defines it as a gold-to-white gradient.
TabItemSelectedFillBrushKey static
Gets the key of the default colour of the fill of the selected tab.
- Value
- The key the default style sets
TabControl.TabItemSelectedFillfrom. The theme defines it as an orange-to-cream gradient.
TabItemTextForegroundBrushKey static
Gets the key of the default colour of the tabs' header text.
- Value
- The key the default style sets
TabControl.TabItemTextForegroundfrom. The theme defines it as black.
TabStripBackgroundBrushKey static
Gets the key of the default colour behind the tab headers.
- Value
- The key the default style sets
TabControl.TabStripBackgroundfrom. The theme does not define it, so the strip has no fill until a skin or the application defines the key.