RoutedControlHost class¶
Attributes: [DefaultProperty("ViewModel")] [DebuggerDisplay("{DefaultContent}, {Router}")]
Defined in
Namespace: ReactiveUI.Winforms
Assembly: ReactiveUI.Winforms.dll
Full name: ReactiveUI.Winforms.RoutedControlHost
Modifiers: public
Summary¶
A control host which will handling routing between different ViewModels and Views.
Applies to
net481
Class hierarchy
classDiagram
class RoutedControlHost
class UserControl
UserControl <|-- RoutedControlHost
class IReactiveObject {
<>
}
IReactiveObject <|.. RoutedControlHost
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. RoutedControlHost
class INotifyPropertyChanging {
<>
}
INotifyPropertyChanging <|.. RoutedControlHost
class IEnableLogger {
<>
}
IEnableLogger <|.. RoutedControlHost
Inherits from: UserControl
Implements: IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger
Remarks¶
The host asks the view locator for each page's view by the view model's run-time type, without building any type
at run time. The default locator checks the view lookup the source generator writes, then the views the app added
with Map. A view registered only with the service locator needs RoutedControlHostUnsafe.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [RoutedControlHost](# class. |
Properties¶
| Name | Summary |
|---|---|
| DefaultContent | Gets or sets the default content. |
| Router | Gets or sets the [RoutingState](# of the view model stack. |
| ViewContractObservable | Gets or sets the view contract observable. |
| ViewLocator | Gets or sets the view locator. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Clean up any resources being used. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanging | Occurs when a property value is changing. |
| PropertyChanged | Occurs when a property value changes. |