Language
Edit

DesktopWindowXamlSourceExtensions.GetInterop<TInterface> Method

Definition

Gets the IDesktopWindowXamlSourceNative interface from a Windows.UI.Xaml.Hosting.DesktopWindowXamlSource instance.

public static TInterface GetInterop<TInterface>(this Windows.UI.Xaml.Hosting.DesktopWindowXamlSource desktopWindowXamlSource) where TInterface : class;
static member GetInterop : Windows.UI.Xaml.Hosting.DesktopWindowXamlSource -> 'Interface (requires 'Interface : null)
<Extension()>
Public Function GetInterop(Of TInterface As Class) (desktopWindowXamlSource As DesktopWindowXamlSource) As TInterface

Type Parameters

TInterface

The interface to cast to

Parameters

desktopWindowXamlSource
Windows.UI.Xaml.Hosting.DesktopWindowXamlSource

The DesktopWindowXamlSource instance to get the interface from

Returns

TInterface

IDesktopWindowXamlSourceNative interface pointer

Remarks

This interface is the only way to set DesktopWindowXamlSource's target window for rendering.

Applies to