ApplicationAccentColorManager class¶
Defined in
Namespace: CrissCross.WPF.UI.Appearance
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Appearance.ApplicationAccentColorManager
Modifiers: public static
Summary¶
Allows updating the accents used by controls in the application by swapping dynamic resources.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Examples¶
ApplicationAccentColorManager.Apply(
Color.FromArgb(0xFF, 0xEE, 0x00, 0xBB),
ApplicationTheme.Dark,
false
);
ApplicationAccentColorManager.Apply(
ApplicationAccentColorManager.GetColorizationColor(),
ApplicationTheme.Dark,
false
);
Properties¶
| Name | Summary |
|---|---|
| static SystemAccent | Gets the SystemAccentColor. |
| static SystemAccentBrush | Gets the Brush of the SystemAccentColor. |
| static PrimaryAccent | Gets the SystemAccentColorPrimary. |
| static PrimaryAccentBrush | Gets the Brush of the SystemAccentColorPrimary. |
| static SecondaryAccent | Gets the SystemAccentColorSecondary. |
| static SecondaryAccentBrush | Gets the Brush of the SystemAccentColorSecondary. |
| static TertiaryAccent | Gets the SystemAccentColorTertiary. |
| static TertiaryAccentBrush | Gets the Brush of the SystemAccentColorTertiary. |
Methods¶
| Name | Summary |
|---|---|
| static Apply | Changes the color accents of the application based on the color entered. |
| static ApplySystemAccent | Applies system accent color to the application. |
| static GetColorizationColor | Gets current Desktop Window Manager colorization color. |