Direct3D mix with XAML
-
mercredi 30 novembre 2011 07:58
I found the CoreWindow will be used in the DirectX , how can I get CoreWindow in the XAML?
could we compiler RenderEngine based on DirectX into WinRT component dll, then used the dll in the c++ Metro style app? How to do it ?
Toutes les réponses
-
mercredi 30 novembre 2011 13:33Modérateur
Hi ZJ,
I do not understand the question. What problem are you trying to solve and what problem did you run into?
CoreWindow is already available in the C# or C++ code as it is part of WinRT: http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.core.corewindow.aspx
When using DirectX you do not need to compile it into a WinMD component. Check out the DirectX samples listed at the top of this forum.
-Jeff
Jeff Sanders (MSFT) -
jeudi 1 décembre 2011 02:22
Hi, jpsanders
Sorry my question is not very clearly before. thank you for help me about following three questions.
1. Actually, I want to use XAML to design UI, and use DirectX to render on the XAML control, such as Grid,Canvas,etc. How can I do it?
2.I hava write a Render Engine library based on DirectX9.0 and c++, How can I use the lib in the XAML and c++ Metro style app?
3.Does the Metro style app only support DX11.1?
-
jeudi 1 décembre 2011 16:29Modérateur
Thanks for the clarifications Z!
Today you cannot use DirectX to render on XAML elements.
Metro Style applications will fall back to an older version of DirectX if DX11 is not installed on the system.
-Jeff
Jeff Sanders (MSFT)- Proposé comme réponse Jeff SandersMicrosoft Employee, Moderator jeudi 1 décembre 2011 16:29
- Marqué comme réponse Jeff SandersMicrosoft Employee, Moderator lundi 5 décembre 2011 13:01
-
vendredi 2 décembre 2011 03:05
Is it possible to use DirectX to rendered on XAML elements later?
-
lundi 5 décembre 2011 13:01Modérateur
Sorry Z,
I do not know. Even if I did, I could not talk about a feature until it was announced publically!
-Jeff
Jeff Sanders (MSFT)- Proposé comme réponse Jeff SandersMicrosoft Employee, Moderator lundi 5 décembre 2011 13:01
-
dimanche 25 mars 2012 18:16
XAML interop with DirectX is supported as of the Consumer Preview release. The XAML element you probably want is called SwapchainBackgroundPanel. Use of this technique is demonstrated in the sample called Simple3DGameXAML.- Proposé comme réponse Filip Skakun lundi 26 mars 2012 16:29
-
lundi 26 mars 2012 20:01
I think this is the information you are looking for...
http://blogs.msdn.com/b/windowsappdev/archive/2012/03/15/combining-xaml-and-directx.aspx

