Class UIToolkitHost
A class used to host an app in a UIDocument.
This is a wrapper around a UIDocument that implements IUIToolkitHost.Inherited Members
Namespace: Unity.AppUI.MVVM
Assembly: solution.dll
Syntax
public sealed class UIToolkitHost : IUIToolkitHost, IHost, IDisposable
  Constructors
| Name | Description | 
|---|---|
| UIToolkitHost(UIDocument) | Default constructor. Creates a new instance of UIToolkitHost that hosts an app in the given UIDocument.  | 
      
Methods
| Name | Description | 
|---|---|
| Dispose() | Disposes of the host.  | 
      
| HostApplication(IUIToolkitApp, IServiceProvider) | Called when the app is being hosted. A service provider is provided that can be used to resolve services through the host itself. | 
      
| TryFindElement<T>(out T) | Tries to find an element of the given type in the visual tree of the app.  |