Back to Devexpress

ThemedWindow.EnableAcrylic Property

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-1269c6c8.md

latest3.0 KB
Original Source

ThemedWindow.EnableAcrylic Property

Gets or sets whether the Acrylic effect is enabled. 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 EnableAcrylic { get; set; }
vb
Public Property EnableAcrylic As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to enable the Acrylic effect; otherwise, false.

|

Remarks

Note

The Acrylic effect is available only in Windows 10.

Run Demo: Fluent Design Calculator

Acrylic makes the ThemedWindow (including title bar) translucent to add a depth effect.

You can use the AcrylicColor or AcrylicOpacity property to specify the ThemedWindow‘s background color or opacity when the Acrylic effect is enabled.

When the Acrylic effect is enabled, the ThemedWindow.WindowKind property is set to WindowKind.Normal.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EnableAcrylic property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-create-a-fluent-design-using-appearance-options/CS/FluentDesignTemplate/MainWindow.xaml#L16

xml
mc:Ignorable="d"
    Title="YourCRM" Height="665" Width="1190" EnableAcrylic="True" AcrylicOpacity="0.6" AcrylicColor="#FF02111D" Icon="{dx:DXImage SvgImages/Icon Builder/Business_Target.svg}" ActiveGlowColor="#FF02111D">
<dx:ThemedWindow.Resources>

See Also

AcrylicColor Property

AcrylicOpacity Property

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace