Class ViewModelViewHost
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
A control which will use Splat dependency injection to determine the View to show. It uses.
public class ViewModelViewHost : ReactiveViewController, IReactiveNotifyPropertyChanged<ReactiveViewController>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICanActivate
- Inheritance
-
ViewModelViewHost
- Implements
- Inherited Members
- Extension Methods
Constructors
ViewModelViewHost()
Initializes a new instance of the ViewModelViewHost class.
public ViewModelViewHost()
Fields
ContractFallbackByPassProperty
The ContractFallbackByPass dependency property.
public static readonly DependencyProperty ContractFallbackByPassProperty
Field Value
- DependencyProperty
DefaultContentProperty
The default content dependency property.
public static readonly DependencyProperty DefaultContentProperty
Field Value
- DependencyProperty
ViewContractObservableProperty
The view contract observable dependency property.
public static readonly DependencyProperty ViewContractObservableProperty
Field Value
- DependencyProperty
ViewModelProperty
The view model dependency property.
public static readonly DependencyProperty ViewModelProperty
Field Value
- DependencyProperty
Properties
ContractFallbackByPass
Gets or sets a value indicating whether should bypass the default contract fallback behavior.
public bool ContractFallbackByPass { get; set; }
Property Value
DefaultContent
Gets or sets the default content.
public UIViewController? DefaultContent { get; set; }
Property Value
- UIViewController
The default content.
ViewContract
Gets or sets the view contract.
public string? ViewContract { get; set; }
Property Value
ViewContractObservable
Gets or sets the view contract observable.
public IObservable<string?>? ViewContractObservable { get; set; }
Property Value
ViewLocator
Gets or sets the view locator.
public IViewLocator? ViewLocator { get; set; }
Property Value
- IViewLocator
The view locator.
ViewModel
Gets or sets the view model.
public object? ViewModel { get; set; }
Property Value
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
ResolveViewForViewModel(object?, string?)
resolve view for view model with respect to contract.
protected virtual void ResolveViewForViewModel(object? viewModel, string? contract)