BinarySkins
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Skinning
Makes the built-in skins.
public static class BinarySkins
Members at a glance
Create | Makes a built-in skin in the accent colour chosen in Windows. |
Create | Makes a built-in skin in the given accent colour. |
Resolve | The theme a built-in skin is drawn as: System becomes white or black as Windows is set now. |
DefaultAccent | The accent used when neither the application nor Windows supplies one. |
Methods
Create
public static BinarySkin Create(BinarySkinTheme theme)
Makes a built-in skin in the accent colour chosen in Windows.
- theme
- The skin.
Returns. A new skin, free to change.
Create
public static BinarySkin Create(BinarySkinTheme theme, Color accent)
Makes a built-in skin in the given accent colour.
- theme
- The skin.
- accent
- The accent. Any colour will do: where it is drawn as text or as a line it is made as dark or as light as it must be to read.
Returns. A new skin, free to change.
- ArgumentOutOfRangeException
themeis not a built-in skin.
Resolve
public static BinarySkinTheme Resolve(BinarySkinTheme theme)
The theme a built-in skin is drawn as: System becomes white or black as Windows is set now.
- theme
- The skin.
Returns. The theme it is drawn as.
Fields
DefaultAccent
public static readonly Color DefaultAccent
The accent used when neither the application nor Windows supplies one.