Class DataStateBehavior
Toggles between two states based on a conditional statement.
public class DataStateBehavior : Behavior<FrameworkElement>, IAttachedObject
- Inheritance
-
Behavior<FrameworkElement>DataStateBehavior
- Implements
- Inherited Members
Constructors
DataStateBehavior()
public DataStateBehavior()
Fields
BindingProperty
public static readonly DependencyProperty BindingProperty
Field Value
- DependencyProperty
FalseStateProperty
public static readonly DependencyProperty FalseStateProperty
Field Value
- DependencyProperty
TrueStateProperty
public static readonly DependencyProperty TrueStateProperty
Field Value
- DependencyProperty
ValueProperty
public static readonly DependencyProperty ValueProperty
Field Value
- DependencyProperty
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.