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¶
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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ViewModelControlHostUnsafe](# class. |
Inherited members
ReactiveUI.Winforms.ViewModelControlHost.#ctorReactiveUI.Winforms.ViewModelControlHost.Dispose(System.Boolean)ReactiveUI.Winforms.ViewModelControlHost.DefaultCacheViewsEnabledReactiveUI.Winforms.ViewModelControlHost.CurrentViewReactiveUI.Winforms.ViewModelControlHost.DefaultContentReactiveUI.Winforms.ViewModelControlHost.ViewContractObservableReactiveUI.Winforms.ViewModelControlHost.ViewLocatorReactiveUI.Winforms.ViewModelControlHost.ViewModelReactiveUI.Winforms.ViewModelControlHost.ContentReactiveUI.Winforms.ViewModelControlHost.CacheViewsReactiveUI.Winforms.ViewModelControlHost.PropertyChangingReactiveUI.Winforms.ViewModelControlHost.PropertyChangedSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString