Skip to content

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

NameSummary
static SystemAccentGets the SystemAccentColor.
static SystemAccentBrushGets the Brush of the SystemAccentColor.
static PrimaryAccentGets the SystemAccentColorPrimary.
static PrimaryAccentBrushGets the Brush of the SystemAccentColorPrimary.
static SecondaryAccentGets the SystemAccentColorSecondary.
static SecondaryAccentBrushGets the Brush of the SystemAccentColorSecondary.
static TertiaryAccentGets the SystemAccentColorTertiary.
static TertiaryAccentBrushGets the Brush of the SystemAccentColorTertiary.

Methods

NameSummary
static ApplyChanges the color accents of the application based on the color entered.
static ApplySystemAccentApplies system accent color to the application.
static GetColorizationColorGets current Desktop Window Manager colorization color.
Inherited members