DesktopWindowXamlSourceExtensions.GetInterop<TInterface> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
IDesktopWindowXamlSourceNative interface pointer
Remarks
This interface is the only way to set DesktopWindowXamlSource's target window for rendering.