Interface ISwapChainPanelNative2 (windows.ui.xaml.media.dxinterop.h)
Fournit une interopérabilité entre XAML et une chaîne d’échange DirectX. Contrairement à SwapChainBackgroundPanel, un SwapChainPanel peut apparaître à n’importe quel niveau dans l’arborescence d’affichage XAML, et plus de 1 peut être présent dans une arborescence donnée.
Héritage
L’interface ISwapChainPanelNative2 hérite de ISwapChainPanelNative. ISwapChainPanelNative2 a également les types de membres suivants :
Méthodes
L’interface ISwapChainPanelNative2 a ces méthodes.
ISwapChainPanelNative2 ::SetSwapChainHandle Définit la chaîne d’échange DirectX pour SwapChainPanel à l’aide d’un handle pour la chaîne d’échange. |
Remarques
Cette interface fournit l’implémentation native du type de Windows Runtime Windows ::UI ::XAML ::Control ::SwapChainPanel. Pour obtenir un pointeur vers ISwapChainPanelNative, vous devez convertir un instance SwapChainPanel en IInspectable ou IUnknown, puis appeler QueryInterface.
Microsoft::WRL::ComPtr<ISwapChainPanelNative2> m_swapChainNative2;
// ...
IInspectable* panelInspectable = (IInspectable*) reinterpret_cast<IInspectable*>(swapChainPanel);
panelInspectable->QueryInterface(__uuidof(ISwapChainPanelNative2), (void **)&m_swapChainNative2);
Configuration requise
Condition requise | Valeur |
---|---|
Client minimal pris en charge | Windows 8.1 [applications de bureau | Applications UWP] |
Serveur minimal pris en charge | Windows Server 2012 R2 [applications de bureau | Applications UWP] |
Plateforme cible | Windows |
En-tête | windows.ui.xaml.media.dxinterop.h |
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour