ViewModelViewHost class¶
Attributes: [DebuggerDisplay("ViewModelViewHost: {ViewContractObservable}")] [Preserve(AllMembers = true)] [RequiresUnreferencedCode("The method uses reflection and may not work in AOT environments.")]
Defined in
Namespace: ReactiveUI.Uno Assembly: ReactiveUI.Uno.dll Full name: ReactiveUI.Uno.ViewModelViewHost Modifiers: public
Summary¶
View source (opens in a new tab)
This content control will automatically load the View associated with
the ViewModel property and display it. This control is very useful
inside a DataTemplate to display the View associated with a ViewModel.
Applies to
net11.0, net11.0-browserwasm1.0, net11.0-desktop1.0, net11.0-windows10.0.19041, net11.0-android37.0, net11.0-ios27.2, net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-windows10.0.19041, net10.0-ios26.0, net10.0-android36.0
Class hierarchy
classDiagram
class ViewModelViewHost
class TransitioningContentControl
TransitioningContentControl <|-- ViewModelViewHost
class IViewFor {
<<interface>>
}
IViewFor <|.. ViewModelViewHost
class IActivatableView {
<<interface>>
}
IActivatableView <|.. ViewModelViewHost
class IEnableLogger {
<<interface>>
}
IEnableLogger <|.. ViewModelViewHost
Inherits from: TransitioningContentControl
Implements: IViewFor, IActivatableView, IEnableLogger
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ViewModelViewHost](# class. |
Properties¶
| Name | Summary |
|---|---|
| ViewContractObservable | Gets or sets the view contract observable. |
| DefaultContent | Gets or sets the content displayed by default when no content is set. |
| ViewModel | Gets or sets the ViewModel to display. |
| ViewContract | Gets or sets the view contract. |
| ViewLocator | Gets or sets the view locator. |
Fields¶
| Name | Summary |
|---|---|
| static DefaultContentProperty | Identifies the DefaultContent dependency property. |
| static ViewModelProperty | Identifies the ViewModel dependency property. |
| static ViewContractObservableProperty | Identifies the ViewContractObservable dependency property. |
Inherited members
ReactiveUI.Uno.TransitioningContentControl.#ctorSystem.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)