public abstract class ReactiveRunicView<TViewModel> : RunicView<TViewModel>, IViewFor<TViewModel>, IViewFor, IActivatableView, IRunicViewLifetime, IRunicWebMountLifetime where TViewModel : class A logical Runic View with ReactiveUI's typed ViewModel and mount activation. Each instance owns one activation lease, so a presentation-aware content session can resolve several Views for the same ViewModel safely.
Constructors
ReactiveRunicView
protected ReactiveRunicView() No documentation.
Properties
DataContext
public override TViewModel? DataContext { get; set; } The typed ViewModel; assigning it rebinds ReactiveUI activation.
ViewModel
public TViewModel? ViewModel { get; set; } The same as ReactiveRunicView.DataContext, as required by IViewFor.
Methods
OnAttached
protected virtual void OnAttached() Called when the View starts being presented, before its web component mounts. It runs in the window's model turn. The default does nothing; an override does not need to call it.
OnDetached
protected virtual void OnDetached() Called when the View stops being presented, after the ViewModel was deactivated. It runs in the window's model turn. The default does nothing; an override does not need to call it.
OnWebMounted
protected virtual void OnWebMounted() Called after the web component mounted and an IActivatableViewModel was activated. The default does nothing; an override does not need to call it.
OnWebUnmounted
protected virtual void OnWebUnmounted() Called after the web component unmounted and the ViewModel was deactivated. The default does nothing; an override does not need to call it.