Program architecture for Windows 8 C# & XAML app featuring graphics
-
Wednesday, September 05, 2012 12:52 PM
Hello to the forum! Rather than getting answers split up, I'm going to start out by linking to my stack overflow question on the matter.
I'm looking to find out the best way Microsoft intends for people to add sections of 3D into Windows 8 style apps. Specifically C#/XAML ones. My idea doesn't require full screen 3D, so I'd love to be able to leverage XAML for the interface while also avoiding the complexity of C++.
Any help & advice is greatly appreciated!
All Replies
-
Wednesday, September 05, 2012 1:13 PM
well i think you have to do the C++... you can combine it. take a look at sharpdx then you can use direct x in c#- Marked As Answer by Min ZhuMicrosoft Contingent Staff, Moderator Monday, September 24, 2012 6:47 AM
-
Wednesday, September 05, 2012 1:16 PMHey Dave, thanks for the answer. How would I use SharpDX in a XAML app?
-
Thursday, September 13, 2012 2:22 AMModerator
Yes, you can try to use SharpDX. But I'm not sure if it support XAML and DirectX interop.
There are three way to achieve your function.
SurfaceImageSource: islands of DirectX in a XAML UI
VirtualSurfaceImageSource: large-scale DirectX content + XAML UI
SwapChainBackgroundPanel: DirectX with a XAML overlayPlease follow this blog
http://blogs.msdn.com/b/windowsappdev/archive/2012/03/15/combining-xaml-and-directx.aspxWe would suggest you to use C++, and there is template for XAML and DirectX interop.
Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Min ZhuMicrosoft Contingent Staff, Moderator Monday, September 24, 2012 6:47 AM


