Class ViewModelControlHost
- Namespace
- ReactiveUI.Winforms
- Assembly
- ReactiveUI.Winforms.dll
A view model control host which will find and host the View for a ViewModel.
public class ViewModelControlHost : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IViewFor, IActivatableView
- Inheritance
-
ViewModelControlHost
- Implements
- Inherited Members
- Extension Methods
Constructors
ViewModelControlHost()
Initializes a new instance of the ViewModelControlHost class.
public ViewModelControlHost()
Properties
CacheViews
Gets or sets a value indicating whether to cache views.
[Bindable(true)]
public bool CacheViews { get; set; }
Property Value
Content
Gets or sets the content.
[Bindable(true)]
public object? Content { get; protected set; }
Property Value
CurrentView
Gets the current view.
public Control? CurrentView { get; }
Property Value
DefaultCacheViewsEnabled
Gets or sets a value indicating whether [default cache views enabled].
public static bool DefaultCacheViewsEnabled { get; set; }
Property Value
DefaultContent
Gets or sets the default content.
public Control? DefaultContent { get; set; }
Property Value
ViewContractObservable
Gets or sets the view contract observable.
[Browsable(false)]
public IObservable<string>? ViewContractObservable { get; set; }
Property Value
- IObservable<string>
The view contract observable.
ViewLocator
Gets or sets the view locator.
[Browsable(false)]
public IViewLocator? ViewLocator { get; set; }
Property Value
ViewModel
Gets or sets the View Model associated with the View.
[Bindable(true)]
public object? ViewModel { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue if managed resources should be disposed; otherwise, false.
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging