Show / Hide Table of Contents

Class DataStateBehavior

Toggles between two states based on a conditional statement.

Inheritance
System.Object
DependencyObject
Behavior
Behavior<FrameworkElement>
DataStateBehavior
Implements
IAttachedObject
Inherited Members
Behavior<FrameworkElement>.AssociatedObject
Behavior.AssociatedType
Behavior.OnDetaching()
Behavior.IAttachedObject.AssociatedObject
Behavior.Attach(DependencyObject)
Behavior.Detach()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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>, IDependencyObject, IAttachedObject

Fields

| Improve this Doc View Source

BindingProperty

Declaration
public static readonly DependencyProperty BindingProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FalseStateProperty

Declaration
public static readonly DependencyProperty FalseStateProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TrueStateProperty

Declaration
public static readonly DependencyProperty TrueStateProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ValueProperty

Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Binding

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

OnAttached()

Called after the behavior is attached to an AssociatedObject.

Declaration
protected override void OnAttached()
Overrides
Behavior.OnAttached()
Remarks

Override this to hook up functionality to the AssociatedObject.

Implements

IAttachedObject

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
  • Improve this Doc
  • View Source