Class DataStateBehavior
Toggles between two states based on a conditional statement.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Expression.Interactivity.Core
Assembly: OpenSilver.Expression.Interactions.dll
Syntax
public class DataStateBehavior : Behavior<FrameworkElement>, IAttachedObject
Fields
| Improve this Doc View SourceBindingProperty
Declaration
public static readonly DependencyProperty BindingProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FalseStateProperty
Declaration
public static readonly DependencyProperty FalseStateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TrueStateProperty
Declaration
public static readonly DependencyProperty TrueStateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueProperty
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBinding
Gets or sets the binding that produces the property value of the data object. This is a dependency property.
Declaration
public object Binding { get; set; }
Property Value
Type | Description |
---|---|
System.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.
Declaration
public string FalseState { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TrueState
Gets or sets the name of the visual state to transition to when the condition is met. This is a dependency property.
Declaration
public string TrueState { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets or sets the value to be compared with the property value of the data object. This is a dependency property.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceOnAttached()
Called after the behavior is attached to an AssociatedObject.
Declaration
protected override void OnAttached()
Overrides
Remarks
Override this to hook up functionality to the AssociatedObject.