Skip to content

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

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

NameSummary
.ctorInitializes a new instance of the [RoutedControlHost](# class.

Properties

NameSummary
DefaultContentGets or sets the default content.
RouterGets or sets the [RoutingState](# of the view model stack.
ViewContractObservableGets or sets the view contract observable.
ViewLocatorGets or sets the view locator.

Methods

NameSummary
DisposeClean up any resources being used.

Events

NameSummary
PropertyChangingOccurs when a property value is changing.
PropertyChangedOccurs when a property value changes.

Derived types

Inherited members