Class ReactiveViewController
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
This is a View that is both a NSViewController and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactiveViewController : UIViewController, IReactiveNotifyPropertyChanged<ReactiveViewController>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICanActivate
- Inheritance
-
ReactiveViewController
- Implements
- Derived
- Extension Methods
Constructors
ReactiveViewController()
Initializes a new instance of the ReactiveViewController class.
protected ReactiveViewController()
ReactiveViewController(NSCoder)
Initializes a new instance of the ReactiveViewController class.
protected ReactiveViewController(NSCoder c)
Parameters
c
NSCoderThe coder.
ReactiveViewController(NSObjectFlag)
Initializes a new instance of the ReactiveViewController class.
protected ReactiveViewController(NSObjectFlag f)
Parameters
f
NSObjectFlagThe object flag.
ReactiveViewController(IntPtr)
Initializes a new instance of the ReactiveViewController class.
protected ReactiveViewController(IntPtr handle)
Parameters
handle
IntPtrThe pointer.
ReactiveViewController(string, NSBundle)
Initializes a new instance of the ReactiveViewController class.
protected ReactiveViewController(string nibNameOrNull, NSBundle nibBundleOrNull)
Parameters
nibNameOrNull
stringThe name.
nibBundleOrNull
NSBundleThe bundle.
Properties
Activated
Gets a observable which is triggered when the ViewModel 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<ReactiveViewController>> 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<ReactiveViewController>> Changing { get; }
Property Value
Deactivated
Gets a observable which is triggered when the ViewModel 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.
ViewDidDisappear()
public override void ViewDidDisappear()
ViewDidDisappear(bool)
public override void ViewDidDisappear(bool animated)
Parameters
animated
bool
ViewWillAppear()
public override void ViewWillAppear()
ViewWillAppear(bool)
public override void ViewWillAppear(bool animated)
Parameters
animated
bool
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging