Back to Devexpress

ThemedWindow.UseGlowColors Property

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-98e52e89.md

latest2.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool UseGlowColors { get; set; }
vb
Public Property UseGlowColors As Boolean

Property Value

TypeDescription
Boolean

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

|

Remarks

You can set the UseGlowColors property to true to paint the glow effect with custom colors. To specify custom colors to paint a glow effect for focused and non-focused windows, use 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.

xaml
<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:

  • For a non-focused window:

Limitation

If the ThemedWindow.UseNativeWindow property value is true, UseGlowColors has no effect.

See Also

ShowGlow

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace