Skip to content

ViewModelControlHostUnsafe class

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

Defined in

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

Summary

View source

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

Applies to

net481

Class hierarchy
classDiagram
class ViewModelControlHostUnsafe
class ViewModelControlHost
ViewModelControlHost <|-- ViewModelControlHostUnsafe

Inherits from: ViewModelControlHost

Remarks

ViewModelControlHost 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 ViewModelControlHost when you can.

Constructors

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