BinarySkinKeys
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
AccentBrush | Gets the key of the brush in Accent. |
AccentStrokeBrush | Gets the key of the brush in AccentStroke. |
AccentTextBrush | Gets the key of the brush in AccentText. |
CanvasBrush | Gets the key of the brush in Canvas. |
CanvasHoverBrush | Gets the key of the brush in CanvasHover. |
CanvasPressedBrush | Gets the key of the brush in CanvasPressed. |
CanvasTextBrush | Gets the key of the brush in CanvasText. |
CornerRadius | Gets the key of the skin's corner rounding, a CornerRadius. |
Density | Gets the key of Density, a BinarySkinDensity. |
DividerBrush | Gets the key of the brush in Divider. |
FieldBrush | Gets the key of the brush in Field. |
HoverBrush | Gets the key of the brush in Hover. |
IsDark | Gets the key of whether the skin in force is a dark one, a bool. |
PressedBrush | Gets the key of the brush in Pressed. |
SecondaryTextBrush | Gets the key of the brush in SecondaryText. |
StrokeBrush | Gets the key of the brush in Stroke. |
SurfaceBrush | Gets the key of the brush in Surface. |
SurfaceTextBrush | Gets the key of the brush in SurfaceText. |
WindowBorderBrush | Gets the key of the brush in WindowBorder. |
Brush | The key of the brush in one of the skin's colours. |
Color | The key of one of the skin's colours as a Color. |
Properties
AccentBrush
Gets the key of the brush in Accent.
Value. The resource key.
AccentStrokeBrush
Gets the key of the brush in AccentStroke.
Value. The resource key.
AccentTextBrush
Gets the key of the brush in AccentText.
Value. The resource key.
CanvasBrush
Gets the key of the brush in Canvas.
Value. The resource key.
CanvasHoverBrush
Gets the key of the brush in CanvasHover.
Value. The resource key.
CanvasPressedBrush
Gets the key of the brush in CanvasPressed.
Value. The resource key.
CanvasTextBrush
Gets the key of the brush in CanvasText.
Value. The resource key.
CornerRadius
Gets the key of the skin's corner rounding, a CornerRadius.
Value. The resource key.
Density
Gets the key of Density, a BinarySkinDensity.
Value. The resource key.
DividerBrush
Gets the key of the brush in Divider.
Value. The resource key.
FieldBrush
Gets the key of the brush in Field.
Value. The resource key.
HoverBrush
Gets the key of the brush in Hover.
Value. The resource key.
IsDark
Gets the key of whether the skin in force is a dark one, a bool.
Value. The resource key.
PressedBrush
Gets the key of the brush in Pressed.
Value. The resource key.
SecondaryTextBrush
Gets the key of the brush in SecondaryText.
Value. The resource key.
StrokeBrush
Gets the key of the brush in Stroke.
Value. The resource key.
SurfaceBrush
Gets the key of the brush in Surface.
Value. The resource key.
SurfaceTextBrush
Gets the key of the brush in SurfaceText.
Value. The resource key.
WindowBorderBrush
Gets the key of the brush in WindowBorder.
Value. The resource key.
Methods
Brush
The key of the brush in one of the skin's colours.
- role
- The colour.
Returns. The resource key.
Color
The key of one of the skin's colours as a Color.
- role
- The colour.
Returns. The resource key.