Class DataStateBehavior
Toggles between two states based on a conditional statement.
public class DataStateBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
- Inheritance
-
DataStateBehavior
- Implements
- Inherited Members
- Extension Methods
Fields
BindingProperty
public static readonly DependencyProperty BindingProperty
Field Value
FalseStateProperty
public static readonly DependencyProperty FalseStateProperty
Field Value
TrueStateProperty
public static readonly DependencyProperty TrueStateProperty
Field Value
ValueProperty
public static readonly DependencyProperty ValueProperty
Field Value
Properties
Binding
Gets or sets the binding that produces the property value of the data object. This is a dependency property.
public object Binding { get; set; }
Property Value
FalseState
Gets or sets the name of the visual state to transition to when the condition is not met. This is a dependency property.
public string FalseState { get; set; }
Property Value
TrueState
Gets or sets the name of the visual state to transition to when the condition is met. This is a dependency property.
public string TrueState { get; set; }
Property Value
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
Methods
OnAttached()
Called after the behavior is attached to an AssociatedObject.
protected override void OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.