Skip to main content
A newer version of this page is available. .

ThemedWindow.UseGlowColors Property

Gets or sets whether the ThemedWindow should paint a glow effect with custom colors. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public bool UseGlowColors { get; set; }

Property Value

Type Description
Boolean

true, to paint the glow effect using custom colors; otherwise, false.

Remarks

You can paint the glow effect with custom colors. Set the UseGlowColors property to true to paint the glow effect with custom colors. You can specify custom colors to paint a glow for focused and non-focused windows using the ThemedWindow.ActiveGlowColor and ThemedWindow.InactiveGlowColor properties respectively.

If the UseGlowColors property is set to false, the window glow effect is painted with colors specified in the current theme settings.

The UseGlowColors property is in effect when the ThemedWindow.ShowGlow property is set to true.

The code sample below demonstrates how to enable custom glow colors for the ThemedWindow.

<dx:ThemedWindow 
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
    ...
    x:Class="MyWpfApp.MainWindow" Title="Orders by Employees" Icon="{dxc:DXImage Image=BOOrderItem_32x32.png}" 
    ActiveGlowColor="Red" InactiveGlowColor="GreenYellow" UseGlowColors="True">
...
</dx:ThemedWindow>

The images below illustrate the result.

  • for a focused window:

    ThemedWindows_GlowActive

  • for a non-focused window:

    ThemedWindows_GlowInActive

See Also