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:

  1. Create a new C#/C++ Windows Store app, or open an existing project

  2. In Solution Explorer tree view, right-click References and select Add Reference.

  3. 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.
  4. Then select WindowsPreview.Kinect and click OK.

  5. Open your project's Package.appxmanifest and click on the Capabilites tab.

  6. Check the Microphone and Webcam check boxes.

  7. 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;