Visual Studio Pro 2013 - unable to find XAML Direct3D WP tempate

59 views Asked by At

I have been trying to create a XAML Direc3D Project from the Windows Phone 8 & 8.1 project wizard but unable to locate the project template in Visual Studio Professonal 2013!

I have been following this Microsoft article to decide which c# project template would be more suitable to use:

Choosing the right project template for your game for Windows Phone 8

Also following this article explaining the structure of a XAML Direct3D project:

XAML and Direct3D apps for Windows Phone 8

OK, the problem I'm having is that the XAML Direct3D Project Template is not available from the project wizard options. Maybe I've missed something or have to install additioanl project templates etc?

I have done all the regular searches regarding this but unable to find an answer as yet and hoping someone more experienced here can explain what the problem is here?

Many thanks

1

There are 1 answers

1
Chuck Walbourn On BEST ANSWER

There is not ay built-in managed assemblies for using Direct3D or Direct2D from C#, so the provided "DirectX and XAML app" project template is a Visual C++ project.

You should be able to use the standard Visual C# -> Windows Phone apps -> Blank App (Windows phone) or Visual C# -> Universal Apps -> Blank App (Universal Apps) as a starting XAML app, and then add interop per the MSDN instructions you reference but you'll need to use some other solution for actually calling Direct2D or Direct3D from C# such as Win2D or SharpDX. For example see the Win2D docs.