Skip to main content

DXTriggerBase.Binding Property

Gets or sets the binding that produces the property value of the data object.

Namespace: DevExpress.Xpf.DXBinding

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

Declaration

public BindingBase Binding { get; set; }

Property Value

Type Description
BindingBase

A binding to a property that produces the property value of the data object.

Remarks

The property value produced by this binding is compared with the value specified by the DXTriggerBase.Value property. That value is first converted to the type of the value of the binding (if possible), and then the two values are compared using the Object.Equals method. If the two values are equal, then the associated data templates are applied.

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

See Also