Skip to content

IThemeService.SetAccent(Color) method

Defined in

Type: IThemeService Namespace: CrissCross.WPF.UI 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. bool SetAccent(Color accentColor)
  • 2. bool SetAccent(SolidColorBrush accentSolidBrush)

1. Overload

bool SetAccent(Color accentColor)

Summary: Sets current application accent.

Parameters

NameTypeDescription
accentColorColorColor of the accent.

Returns: bool -- true if the operation succeeds. false otherwise.

2. Overload

bool SetAccent(SolidColorBrush accentSolidBrush)

Summary: Sets current application accent.

Parameters

NameTypeDescription
accentSolidBrushSolidColorBrushThe accent solid brush.

Returns: bool -- true if the operation succeeds. false otherwise.