Share via


DataTriggerBehavior Class

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

Inheritance Hierarchy

System.Object
  DependencyObject
    Microsoft.Xaml.Interactions.Core.DataTriggerBehavior

Namespace:  Microsoft.Xaml.Interactions.Core
Assembly:  Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)

Syntax

'Declaration
Public NotInheritable Class DataTriggerBehavior _
    Inherits DependencyObject _
    Implements IBehavior
public sealed class DataTriggerBehavior : DependencyObject, 
    IBehavior
public ref class DataTriggerBehavior sealed : public DependencyObject, 
    IBehavior
[<Sealed>]
type DataTriggerBehavior =  
    class 
        inherit DependencyObject 
        interface IBehavior 
    end
public final class DataTriggerBehavior extends DependencyObject implements IBehavior

The DataTriggerBehavior type exposes the following members.

Constructors

  Name Description
Public method DataTriggerBehavior Initializes a new instance of the DataTriggerBehavior class.

Top

Properties

  Name Description
Public property Actions Gets the collection of actions associated with the behavior. This is a dependency property.
Public property AssociatedObject Gets the DependencyObject to which the IBehavior is attached.
Public property Binding Gets or sets the bound object that the DataTriggerBehavior will listen to. This is a dependency property.
Public property ComparisonCondition Gets or sets the type of comparison to be performed between Binding and Value. This is a dependency property.
Public property Dispatcher (Inherited from DependencyObject.)
Public property Value Gets or sets the value to be compared with the value of Binding. This is a dependency property.

Top

Methods

  Name Description
Public method Attach Attaches to the specified object.
Public method ClearValue (Inherited from DependencyObject.)
Public method Detach Detaches this instance from its associated object.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetAnimationBaseValue (Inherited from DependencyObject.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue (Inherited from DependencyObject.)
Public method ReadLocalValue (Inherited from DependencyObject.)
Public method SetValue (Inherited from DependencyObject.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member ActionsProperty Specifies the collection of actions associated with the behavior.
Public fieldStatic member BindingProperty the bound object that the DataTriggerBehavior will listen to.
Public fieldStatic member ComparisonConditionProperty Specifies the type of comparison to be performed between Binding and Value.
Public fieldStatic member ValueProperty Specifies the value to be compared with the value of Binding.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Xaml.Interactions.Core Namespace