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¶
View source (opens in a new tab)
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 {
<<interface>>
}
IReactiveObject <|.. RoutedControlHost
class INotifyPropertyChanged {
<<interface>>
}
INotifyPropertyChanged <|.. RoutedControlHost
class INotifyPropertyChanging {
<<interface>>
}
INotifyPropertyChanging <|.. RoutedControlHost
class IEnableLogger {
<<interface>>
}
IEnableLogger <|.. RoutedControlHost
Inherits from: UserControl (opens in a new tab)
Implements: IReactiveObject, INotifyPropertyChanged (opens in a new tab), INotifyPropertyChanging (opens in a new tab), 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 from ReactiveUI.WinForms.Unsafe.
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. |
Derived types¶
Inherited members
System.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)