Table of Contents

Class DataStateBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

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

object

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

string

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

string

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

OnAttached()

Called after the behavior is attached to an AssociatedObject.

protected override void OnAttached()

Remarks

Override this to hook up functionality to the AssociatedObject.