Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: 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 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.

<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

#Limitation

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

See Also