Skip to content

ApplicationThemeManager.Apply(ApplicationTheme, WindowBackdropType, bool) method

Defined in

Type: ApplicationThemeManager Namespace: CrissCross.WPF.UI.Appearance Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Overloads

  • 1. public static void Apply(ApplicationTheme applicationTheme, WindowBackdropType backgroundEffect = Mica, bool updateAccent = true)
  • 2. public static void Apply(FrameworkElement frameworkElement)

1. Overload

public static void Apply(ApplicationTheme applicationTheme, WindowBackdropType backgroundEffect = Mica, bool updateAccent = true)

Summary: Changes the current application theme.

Parameters

NameTypeDescription
applicationTheme[ApplicationTheme](#Theme to set.
backgroundEffect = 2[WindowBackdropType](#Whether the custom background effect should be applied.
updateAccent = trueboolWhether the color accents should be changed.

2. Overload

public static void Apply(FrameworkElement frameworkElement)

Summary: Applies Resources in the frameworkElement.

Parameters

NameTypeDescription
frameworkElementFrameworkElementThe framework element.