Class ReactiveWindowController
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
This is a NSWindowController that is both a NSWindowController and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactiveWindowController : NSWindowController, IReactiveNotifyPropertyChanged<ReactiveWindowController>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICanActivate
- Inheritance
-
ReactiveWindowController
- Implements
- Extension Methods
Constructors
ReactiveWindowController()
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController()
ReactiveWindowController(NSWindow)
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController(NSWindow window)
Parameters
window
NSWindowThe window.
ReactiveWindowController(NSCoder)
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController(NSCoder coder)
Parameters
coder
NSCoderThe coder.
ReactiveWindowController(NSObjectFlag)
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController(NSObjectFlag t)
Parameters
t
NSObjectFlagThe t.
ReactiveWindowController(IntPtr)
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController(IntPtr handle)
Parameters
handle
IntPtrThe handle.
ReactiveWindowController(string)
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController(string windowNibName)
Parameters
windowNibName
stringName of the window nib.
ReactiveWindowController(string, NSObject)
Initializes a new instance of the ReactiveWindowController class.
protected ReactiveWindowController(string windowNibName, NSObject owner)
Parameters
windowNibName
stringName of the window nib.
owner
NSObjectThe owner.
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<ReactiveWindowController>> 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<ReactiveWindowController>> 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.
WindowDidLoad()
public override void WindowDidLoad()
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging