Class FollowObservableStateBehavior
- Namespace
- ReactiveUI.Blend
- Assembly
- ReactiveUI.Blend.dll
Behavior that tracks the state of an observable.
public class FollowObservableStateBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
- Inheritance
-
BehaviorBehavior<FrameworkElement>FollowObservableStateBehavior
- Implements
-
IAttachedObject
- Inherited Members
-
Behavior<FrameworkElement>.AssociatedObjectBehavior.OnAttached()Behavior.CreateInstanceCore()Behavior.Attach(DependencyObject)Behavior.Detach()Behavior.AssociatedType
- Extension Methods
Constructors
FollowObservableStateBehavior()
public FollowObservableStateBehavior()
Fields
StateObservableProperty
The state observable dependency property.
public static readonly DependencyProperty StateObservableProperty
Field Value
- DependencyProperty
TargetObjectProperty
The target object dependency property.
public static readonly DependencyProperty TargetObjectProperty
Field Value
- DependencyProperty
Properties
AutoResubscribeOnError
Gets or sets a value indicating whether [automatic resubscribe on error].
public bool AutoResubscribeOnError { get; set; }
Property Value
StateObservable
Gets or sets the state observable.
public IObservable<string> StateObservable { get; set; }
Property Value
TargetObject
Gets or sets the target object.
public FrameworkElement TargetObject { get; set; }
Property Value
Methods
OnDetaching()
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
protected override void OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.
OnStateObservableChanged(DependencyObject?, DependencyPropertyChangedEventArgs?)
Called when [state observable changed].
protected static void OnStateObservableChanged(DependencyObject? sender, DependencyPropertyChangedEventArgs? e)
Parameters
sender
DependencyObjectThe sender.
e
DependencyPropertyChangedEventArgsThe System.Windows.DependencyPropertyChangedEventArgs instance containing the event data.