Table of Contents

Class DataTrigger

Namespace
Microsoft.Xaml.Behaviors.Core
Assembly
Microsoft.Xaml.Behaviors.dll

Represents a trigger that performs actions when the bound data meets a specified condition.

public class DataTrigger : PropertyChangedTrigger, IAttachedObject
Inheritance
TriggerBase<DependencyObject>
DataTrigger
Implements
Inherited Members

Constructors

DataTrigger()

public DataTrigger()

Fields

ComparisonProperty

public static readonly DependencyProperty ComparisonProperty

Field Value

DependencyProperty

ValueProperty

public static readonly DependencyProperty ValueProperty

Field Value

DependencyProperty

Properties

Comparison

Gets or sets the type of comparison to be performed between the specified values. This is a dependency property.

public ComparisonConditionType Comparison { get; set; }

Property Value

ComparisonConditionType

Value

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

public object Value { get; set; }

Property Value

object

Methods

EvaluateBindingChange(object)

Called when the binding property has changed. UA_REVIEW:chabiss

protected override void EvaluateBindingChange(object args)

Parameters

args object

System.Windows.DependencyPropertyChangedEventArgs argument.

OnAttached()

Called after the trigger is attached to an AssociatedObject.

protected override void OnAttached()

OnDetaching()

Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred.

protected override void OnDetaching()