ISwapChainPanelNative interface

Provides interoperation between XAML and a DirectX swap chain. Unlike SwapChainBackgroundPanel, a SwapChainPanel can appear at any level in the XAML display tree, and more than 1 can be present in any given tree.

Methods

The ISwapChainPanelNative interface has these methods.

Method Description
ISwapChainPanelNative::SetSwapChain Sets the DirectX swap chain for SwapChainPanel.

Remarks

This interface provides the native implementation of the Windows::UI::XAML::Control::SwapChainPanel Windows Runtime type. To obtain a pointer to ISwapChainPanelNative, you must cast a SwapChainPanel instance to IInspectable or IUnknown, and call QueryInterface.


Microsoft::WRL::ComPtr<ISwapChainPanelNative>	m_swapChainNative;
// ...
IInspectable* panelInspectable = (IInspectable*) reinterpret_cast<IInspectable*>(swapChainPanel);
panelInspectable->QueryInterface(__uuidof(ISwapChainPanelNative), (void **)&m_swapChainNative);
	

Requirements

   
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header windows.ui.xaml.media.dxinterop.h

See Also

ISwapChainBackgroundPanelNative

SwapChainPanel