HypernovaDesktop Components · docs
Binarymission
WPF › Skinning › BinarySkinKeys

BinarySkinKeys

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Skinning

The keys BinarySkinManager publishes the skin in force under, in the application's resources, for a control or a window to draw with.

public static class BinarySkinKeys

Remarks

Refer to them with DynamicResource , so that a change of skin reaches what uses them: <Border Background="{DynamicResource {x:Static skin:BinarySkinKeys.SurfaceBrush}}" CornerRadius="{DynamicResource {x:Static skin:BinarySkinKeys.CornerRadius}}" /> Each colour is published twice: as a frozen SolidColorBrush under Brush, and as a Color under Color, for gradients and effects.

Members at a glance

AccentBrushGets the key of the brush in Accent.
AccentStrokeBrushGets the key of the brush in AccentStroke.
AccentTextBrushGets the key of the brush in AccentText.
CanvasBrushGets the key of the brush in Canvas.
CanvasHoverBrushGets the key of the brush in CanvasHover.
CanvasPressedBrushGets the key of the brush in CanvasPressed.
CanvasTextBrushGets the key of the brush in CanvasText.
CornerRadiusGets the key of the skin's corner rounding, a CornerRadius.
DensityGets the key of Density, a BinarySkinDensity.
DividerBrushGets the key of the brush in Divider.
FieldBrushGets the key of the brush in Field.
HoverBrushGets the key of the brush in Hover.
IsDarkGets the key of whether the skin in force is a dark one, a bool.
PressedBrushGets the key of the brush in Pressed.
SecondaryTextBrushGets the key of the brush in SecondaryText.
StrokeBrushGets the key of the brush in Stroke.
SurfaceBrushGets the key of the brush in Surface.
SurfaceTextBrushGets the key of the brush in SurfaceText.
WindowBorderBrushGets the key of the brush in WindowBorder.
BrushThe key of the brush in one of the skin's colours.
ColorThe key of one of the skin's colours as a Color.

Properties

AccentBrush

public static ComponentResourceKey AccentBrush

Gets the key of the brush in Accent.

Value. The resource key.

AccentStrokeBrush

public static ComponentResourceKey AccentStrokeBrush

Gets the key of the brush in AccentStroke.

Value. The resource key.

AccentTextBrush

public static ComponentResourceKey AccentTextBrush

Gets the key of the brush in AccentText.

Value. The resource key.

CanvasBrush

public static ComponentResourceKey CanvasBrush

Gets the key of the brush in Canvas.

Value. The resource key.

CanvasHoverBrush

public static ComponentResourceKey CanvasHoverBrush

Gets the key of the brush in CanvasHover.

Value. The resource key.

CanvasPressedBrush

public static ComponentResourceKey CanvasPressedBrush

Gets the key of the brush in CanvasPressed.

Value. The resource key.

CanvasTextBrush

public static ComponentResourceKey CanvasTextBrush

Gets the key of the brush in CanvasText.

Value. The resource key.

CornerRadius

public static ComponentResourceKey CornerRadius

Gets the key of the skin's corner rounding, a CornerRadius.

Value. The resource key.

Density

public static ComponentResourceKey Density

Gets the key of Density, a BinarySkinDensity.

Value. The resource key.

DividerBrush

public static ComponentResourceKey DividerBrush

Gets the key of the brush in Divider.

Value. The resource key.

FieldBrush

public static ComponentResourceKey FieldBrush

Gets the key of the brush in Field.

Value. The resource key.

HoverBrush

public static ComponentResourceKey HoverBrush

Gets the key of the brush in Hover.

Value. The resource key.

IsDark

public static ComponentResourceKey IsDark

Gets the key of whether the skin in force is a dark one, a bool.

Value. The resource key.

PressedBrush

public static ComponentResourceKey PressedBrush

Gets the key of the brush in Pressed.

Value. The resource key.

SecondaryTextBrush

public static ComponentResourceKey SecondaryTextBrush

Gets the key of the brush in SecondaryText.

Value. The resource key.

StrokeBrush

public static ComponentResourceKey StrokeBrush

Gets the key of the brush in Stroke.

Value. The resource key.

SurfaceBrush

public static ComponentResourceKey SurfaceBrush

Gets the key of the brush in Surface.

Value. The resource key.

SurfaceTextBrush

public static ComponentResourceKey SurfaceTextBrush

Gets the key of the brush in SurfaceText.

Value. The resource key.

WindowBorderBrush

public static ComponentResourceKey WindowBorderBrush

Gets the key of the brush in WindowBorder.

Value. The resource key.

Methods

Brush

public static ComponentResourceKey Brush(BinarySkinColor role)

The key of the brush in one of the skin's colours.

role
The colour.

Returns. The resource key.

Color

public static ComponentResourceKey Color(BinarySkinColor role)

The key of one of the skin's colours as a Color.

role
The colour.

Returns. The resource key.