Class ReactiveControl
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
This is a UIControl that is both and UIControl and has a ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactiveControl : UIControl, IReactiveNotifyPropertyChanged<ReactiveControl>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICanActivate
- Inheritance
-
ReactiveControl
- Implements
- Derived
- Extension Methods
Constructors
ReactiveControl()
Initializes a new instance of the ReactiveControl class.
protected ReactiveControl()
ReactiveControl(CGRect)
Initializes a new instance of the ReactiveControl class.
protected ReactiveControl(CGRect frame)
Parameters
frame
CGRectThe frame.
ReactiveControl(NSCoder)
Initializes a new instance of the ReactiveControl class.
protected ReactiveControl(NSCoder c)
Parameters
c
NSCoderThe c.
ReactiveControl(NSObjectFlag)
Initializes a new instance of the ReactiveControl class.
protected ReactiveControl(NSObjectFlag f)
Parameters
f
NSObjectFlagThe f.
ReactiveControl(IntPtr)
Initializes a new instance of the ReactiveControl class.
protected ReactiveControl(IntPtr handle)
Parameters
handle
IntPtrThe handle.
Properties
Activated
Gets a observable when the control is activated.
public IObservable<Unit> Activated { get; }
Property Value
- IObservable<Unit>
Changed
Gets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple times.
public IObservable<IReactivePropertyChangedEventArgs<ReactiveControl>> Changed { get; }
Property Value
Changing
Gets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple times.
public IObservable<IReactivePropertyChangedEventArgs<ReactiveControl>> Changing { get; }
Property Value
Deactivated
Gets a observable that occurs when the control is deactivated.
public IObservable<Unit> Deactivated { get; }
Property Value
- IObservable<Unit>
ThrownExceptions
Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.
public IObservable<Exception> ThrownExceptions { get; }
Property Value
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
SuppressChangeNotifications()
When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
public IDisposable SuppressChangeNotifications()
Returns
- IDisposable
An object that, when disposed, reenables change notifications.
ViewWillMoveToSuperview(NSView?)
public override void ViewWillMoveToSuperview(NSView? newsuper)
Parameters
newsuper
NSView
WillMoveToSuperview(UIView?)
public override void WillMoveToSuperview(UIView? newsuper)
Parameters
newsuper
UIView
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging