Skip to content

RoutedControlHostUnsafe class

Attributes: [RequiresDynamicCode("RoutedControlHostUnsafe asks the service locator for IViewFor<> closed over the view model's run-time type. Use RoutedControlHost, which uses the generated view lookup and Map registrations, to stay ahead-of-time safe.")] [DebuggerDisplay("{DefaultContent}, {Router}")]

Defined in

Namespace: ReactiveUI.Winforms Assembly: ReactiveUI.Winforms.dll Full name: ReactiveUI.Winforms.RoutedControlHostUnsafe Modifiers: public

Summary

View source

A RoutedControlHost that also finds views registered only with the service locator.

Applies to

net481

Class hierarchy
classDiagram
class RoutedControlHostUnsafe
class RoutedControlHost
RoutedControlHost <|-- RoutedControlHostUnsafe

Inherits from: RoutedControlHost

Remarks

RoutedControlHost asks the view locator's generated view lookup and its Map registrations. This twin asks those first, then the service locator for IViewFor closed over the view model's run-time type.

Closing a generic type at run time needs code the compiler never generated, so this type is not safe to compile ahead of time. Use RoutedControlHost when you can.

Constructors

NameSummary
.ctorInitializes a new instance of the [RoutedControlHostUnsafe](# class.
Inherited members