Class ViewModelViewHost
- Namespace
- ReactiveUI.Maui
- Assembly
- ReactiveUI.Maui.dll
This content view will automatically load and host the view for the given view model. The view model whose view is
to be displayed should be assigned to the View
public class ViewModelViewHost : ContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IViewFor, IActivatableView
- Inheritance
-
View
Model View Host
- Implements
- Inherited Members
- Extension Methods
Constructors
ViewModelViewHost()
Initializes a new instance of the View
[RequiresDynamicCode("ViewModelViewHost uses methods that require dynamic code generation")]
[RequiresUnreferencedCode("ViewModelViewHost uses methods that may require unreferenced code")]
public ViewModelViewHost()
Fields
ContractFallbackByPassProperty
The ContractFallbackByPass dependency property.
Field Value
DefaultContentProperty
Identifies the Default
Field Value
ViewContractObservableProperty
Identifies the View
Field Value
ViewModelProperty
Identifies the View
Field Value
Properties
ContractFallbackByPass
Gets or sets a value indicating whether should bypass the default contract fallback behavior.
Property Value
DefaultContent
Property Value
ViewContract
Gets or sets the fixed contract to use when resolving the view for the given view model.
Property Value
Remarks
This property is a mere convenience so that a fixed contract can be assigned directly in XAML.
ViewContractObservable
Gets or sets the observable which signals when the contract to use when resolving the view for the given view model has changed.
Property Value
ViewLocator
Gets or sets the override for the view locator to use when resolving the view. If unspecified, Current will be used.
Property Value
ViewModel
Gets or sets the view model whose associated view is to be displayed.
Property Value
Methods
ResolveViewForViewModel(object?, string?)
resolve view for view model with respect to contract.
[RequiresDynamicCode("ResolveViewForViewModel uses methods that require dynamic code generation")]
[RequiresUnreferencedCode("ResolveViewForViewModel uses methods that may require unreferenced code")]
protected virtual void ResolveViewForViewModel(object? viewModel, string? contract)