Creating a Windows Store App that Uses Kinect for Windows SDK
This topic provides step-by-step information about creating a Kinect enabled Windows Store app.
Enabling the Kinect sensor in your Windows Store app project
To add Kinect capabilities to your C# or C++ project, perform the following steps:
- Create a new C#/C++ Windows Store app, or open an existing project
-
In Solution Explorer tree view, right-click References and select Add Reference.
-
In the Reference Manager dialog:
- In Windows 8.0, expand the Windows node and select Extensions.
- In Windows 8.1, expand the Windows 8.1 node and select Extensions.
- Then select WindowsPreview.Kinect and click OK.
-
Open your project's Package.appxmanifest and click on the Capabilites tab.
-
Check the Microphone and Webcam check boxes.
-
If your project is in C#, open MainPage.xaml.cs and add the following code:
using WindowsPreview.Kinect;If your project is in C++, open MainPage.xaml.cpp and add the following code:
using namespace WindowsPreview::Kinect;
Alternatively, you can add the following code instead of the above:
namespace Kinect = WindowsPreview::Kinect;