Back to Devexpress

LWThemeValueExtension.TargetType Property

wpf-devexpress-dot-xpf-dot-dxbinding-dot-lwthemevalueextension.md

latest2.2 KB
Original Source

LWThemeValueExtension.TargetType Property

Gets or sets the target conversion type. This is a dependency property.

Namespace : DevExpress.Xpf.DXBinding

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public Type TargetType { get; set; }
vb
Public Property TargetType As Type

Property Value

TypeDescription
Type

The target conversion type.

|

Remarks

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TargetType 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-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>

See Also

LWThemeValueExtension Class

LWThemeValueExtension Members

DevExpress.Xpf.DXBinding Namespace