Windows.UI.Xaml.Hosting.HostingContract
Provides event data for the DesignerAppManager.DesignerAppExited event.
Gets the exit code with which the app exited.
The exit code with which the app exited.
Manages an application in a XAML design surface that runs in a regular UWP context, compared to the legacy designer which uses the XamlUIPresenter and runs in a Win32 process. The process is required to specify the NoUIEntryPoints-DesignModeV2 DisplayName property in the .APPX in order to be activated successfully in this mode. The launched application will not show up in the TaskBar or TaskView switcher.
Initializes a new instance of the DesignerAppManager class.
The identifier for the app user model.
Gets the identifier for the app user model.
The identifier for the app user model.
Occurs when the app in the designer has exited.
Closes the app manager. This will close the process activated by the DesignerAppManager and wait for the process to terminate. It's possible that this method could block for an indefinite amount of time if the process is hung. The DesignerAppExited event **won't** be fired when manually closed.
Creates a new DesignerAppView.
The initial state of the view.
The initial size of the view.
The created DesignerAppView.
Loads the specified object into the app.
The name of the DLL.
The identifier for the class.
Data to initialize the object.
The asynchronous results of the operation. Use this to determine when the async call is complete.
Represents an app view in a XAML design surface.
Gets the identifier for the app view.
The identifier for the app view.
Gets the identifier for the app user model.
The identifier for the app user model.
Get the size of the app view in the designer.
The size of the app view in the designer.
Gets a value that indicates whether the view is visible or hidden.
A value that indicates whether the view is **Visible** or **Hidden**.
Closes the app view in the designer.
Updates the app view in the designer.
The state of the app view.
The size of the app view.
The asynchronous results of the operation. Use this to determine when the async call is complete.
Defines constants that specify whether the app view is visible or hidden.
The app view is hidden.
The app view is visible.
Enables a non-UWP desktop application (for example, a WPF or Windows Forms application) to host a Windows.UI.Xaml.UIElement in an HWND.
Initializes a new instance of the DesktopWindowXamlSource class.
Gets or sets the Windows.UI.Xaml.UIElement object that you want to host in the desktop application.
The object that you want to host in the desktop application.
Gets a value that indicates whether the **DesktopWindowXamlSource** currently has focus in the desktop application.
True if the **DesktopWindowXamlSource** currently has focus in the desktop application; otherwise, false.
Occurs when the **DesktopWindowXamlSource** gets focus in the desktop application (for example, the user presses the **Tab** key while focus is on the element just before the **DesktopWindowXamlSource**).
Occurs when the host desktop application receives a request take back focus from the DesktopWindowXamlSource object (for example, the user is on the last focusable element in the **DesktopWindowXamlSource** and presses **Tab**).
Closes and releases any resources used by this DesktopWindowXamlSource.
Attempts to programmatically give focus to the **DesktopWindowXamlSource** in the desktop application.
An object that specifies the reason and other optional info for the focus navigation.
An object that provides data for the focus navigation request.
Provides event data for the GotFocus event.
Gets a XamlSourceFocusNavigationRequest object that specifies the reason and other info for the focus navigation.
An object that specifies the reason and other info for the focus navigation.
Provides event data for the TakeFocusRequested event.
Gets a XamlSourceFocusNavigationRequest object that specifies the reason and other info for the focus navigation.
An object that specifies the reason and other info for the focus navigation.
Represents a service that resolves resources from an application. This interface is used for design tool hosting scenarios and is not intended for general use.
Resolves a resource that is specified by a path and returns a string filename.
The local path to resolve.
The resolved file name.
Extends IXamlUIPresenterHost to add GetGenericXamlFilePath.
Loads an alternative generic.xaml file into the presenter host at design time.
A local path to the location of the alternative generic.xaml file.
Extends IXamlUIPresenterHost to add ResolveDictionaryResource.
Resolves a resource that is specified by a dictionary and key.
The dictionary that contains the resource.
The resource key.
The suggested value.
The resource object.
Represents the UWP XAML framework. This class provides a static InitializeForCurrentThread method you can use to initialize this framework on the current thread in a non-UWP desktop application (for example, a WPF or Windows Forms application).
Closes and releases any resources used by this WindowsXamlManager.
Initializes the UWP XAML framework in a non-UWP desktop application (for example, a WPF or Windows Forms application) on the current thread.
An object that contains a reference to the UWP XAML framework.
Defines values that represent the reasons that the Windows.UI.Xaml.UIElement got focus in a desktop application that uses a DesktopWindowXamlSource object to host XAML-based UI. The XamlSourceFocusNavigationRequest.Reason property returns one of these values.
The focus was set in response to the user navigating down by using a 4-direction navigation experience (for example, by using keyboard arrow keys).
The focus was set in response to the user navigating to the next element by using a bidirectional navigation experience (for example, by pressing **Tab**).
The focus was set in response to the user navigating to the previous element by using a bidirectional navigation experience (for example, by pressing **Shift-Tab**).
The focus was set in response to the user navigating left by using a 4-direction navigation experience (for example, by using keyboard arrow keys).
The focus was set programmatically.
The focus was restored after a task switch, such as pressing **Alt** + **Tab**.
The focus was set in response to the user navigating right by using a 4-direction navigation experience (for example, by using keyboard arrow keys).
The focus was set in response to the user navigating up by using a 4-direction navigation experience (for example, by using keyboard arrow keys).
Provides information about a request to give focus to a DesktopWindowXamlSource object.
Initializes a new instance of the XamlSourceFocusNavigationRequest class with the reason for the navigation request.
A value that indicates the reason for the navigation request.
Initializes a new instance of the XamlSourceFocusNavigationRequest class with the reason for the navigation request and the bounding rectangle that will receive navigation focus.
A value that indicates the reason for the navigation request.
The bounding rectangle of the element in the desktop application that is losing focus (that is, the element that had focus before the DesktopWindowXamlSource received focus). This parameter is used to provide context to the UWP XAML framework when the user enters the **DesktopWindowXamlSource** by using a 4-direction navigation experience (for example, by using keyboard arrow keys). For more information, see the remarks.
Initializes a new instance of the XamlSourceFocusNavigationRequest class with the reason for the navigation request, the bounding rectangle that will receive navigation focus, and the unique correlation ID for the request.
A value that indicates the reason for the navigation request.
The bounding rectangle of the element in the desktop application that is losing focus (that is, the element that had focus before the DesktopWindowXamlSource received focus). This parameter is used to provide context to the UWP XAML framework when the user enters the **DesktopWindowXamlSource** by using a 4-direction navigation experience (for example, by using keyboard arrow keys). For more information, see the remarks.
The unique identifier for the navigation request. You can use this parameter for logging purposes, or if you have an existing correlation ID from an in-progress focus movement already in progress and you want to connect that focus movement with the current navigation request.
Gets the unique identifier for the navigation request. You can use this value for logging purposes, or if you have an existing correlation ID from an in-progress focus movement already in progress and you want to connect that focus movement with a new navigation request.
The unique identifier for the navigation request.
Gets the bounding rectangle of the element in the desktop application that is losing focus (that is, the element that had focus before the DesktopWindowXamlSource received focus).
The bounding rectangle that is losing focus.
Gets a XamlSourceFocusNavigationReason value that indicates the reason for the navigation request.
A value that indicates the reason for the navigation request.
Provides data for a request to navigate focus to a DesktopWindowXamlSource object by using the NavigateFocus method.
Initializes a new instance of the XamlSourceFocusNavigationResult class.
True if the focus successfully moved to the DesktopWindowXamlSource object; otherwise, false.
Gets a value that indicates whether the focus successfully moved to the DesktopWindowXamlSource object.
True if the focus successfully moved to the DesktopWindowXamlSource object; otherwise, false.
Enables presenting a visual tree on a Microsoft Direct3D surface. This type is used for design tool hosting scenarios and is not intended for general use.
Gets or sets a value that determines whether the host wants timelines to always run to end.
**true** to always run timelines to end. Otherwise **false**.
Gets or sets the root visual element to draw to the surface.
The element to draw.
Gets or sets the string key that identifies the theme set to use from ThemeResourcesXaml.
A string key.
Gets or sets the XAML that specifies a resource dictionary. The resource dictionary contains themes that the host should resolve and that should be applied to the content.
A XAML resource dictionary specified in string form.
Invokes the FlyoutBase placement logic, using a suggested size of a control that will show a placement target and its flyout. Returns the bounds that are the result of running the placement logic.
The bounds of the placement target element, which are passed to FlyoutBase presenter logic.
The desired size of the control that should display the flyout.
The minimum size of the control that should display the flyout.
The bounds of the area that should hold the placement target and flyout.
The desired placement mode to use for FlyoutBase placement logic.
**true** if fallbacks can be used for the placement mode. **false** if fallbacks cannot be used.
The actual placement mode used by the invoked FlyoutBase placement logic.
The bounds as calculated by FlyoutBase placement logic.
Returns calculated bounds of a placement target that is intended to also display a flyout in the host. Additional **out** parameters provide more info on how the bounds were calculated.
The placement target element that the Flyout should be positioned in relation to.
A value of the enumeration that declares the host's preferred placement of the Flyout relative to the target.
A value of the enumeration that declares preferred placement of the Flyout.
**true** if fallback placements are permitted for the Flyout placement logic. **false** if only the *targetPreferredPlacement* value should be considered.
The calculated placement target bounds.
Invokes the SizeChanged event on Window.Current. Used by hosts to propagate size changes from host settings to user code, so that a design mode interaction can be differentiated from a run time interaction.
Presents the surface, as a synchronous call for the host.
Renders the surface. Intended for asynchronous calls via a timer.
Specifies the IXamlUIPresenterHost service implementation to use for application resource resolution.
A service implementation.
Specifies the width and height of the surface.
A width in pixels.
A height in pixels.