Back to Devexpress

LWThemeValueExtension Class

wpf-devexpress-dot-xpf-dot-dxbinding-8098e3c4.md

latest2.3 KB
Original Source

LWThemeValueExtension Class

Implements a XAML extension that allows you to specify property values depending on the applied lightweight theme.

Namespace : DevExpress.Xpf.DXBinding

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class LWThemeValueExtension :
    DXMarkupExtensionBase
vb
Public Class LWThemeValueExtension
    Inherits DXMarkupExtensionBase

Remarks

Refer to the following topic for additional information: Set Theme-Specific Values in XAML.

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

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-themes-use-palette-resources-in-custom-controls/CS/DXSample/MainWindow.xaml#L24

xml
<local:CustomControl1 Margin="5" Text="Custom control with a style that uses palette resources." />
    <dxe:PopupColorEdit EditValue="{LWThemeValue Default=Color.Custom.Red, Win11=Color.Custom.Green, TargetType=Color}" />
</StackPanel>

Inheritance

Object MarkupExtension DevExpress.Xpf.DXBinding.DXMarkupExtensionBase LWThemeValueExtension

See Also

LWThemeValueExtension Members

DevExpress.Xpf.DXBinding Namespace