Skip to main content
A newer version of this page is available. .

DXTriggerBase.Value Property

Gets or sets the value to be compared with the property value of the data object. This is a dependency property.

Namespace: DevExpress.Xpf.DXBinding

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public object Value { get; set; }

Property Value

Type Description
Object

The value to be compared with the property value of the data object.

Remarks

This value is compared with the property value produced by the DXTriggerBase.Binding property of the DXTriggerBase. The comparison is a reference equality check. If the two values are equal, then the associated data template is applied.

You need to specify both the Value and DXTriggerBase.Binding properties on a DXTriggerBase for the trigger to be meaningful. If both of the properties are not set, the DXTriggerBase returns the default template.

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

See Also