Share via


InteractionGallery-WPF C# Sample

Kinect for Windows 1.6, 1.7, 1.8

Overview

When you run this sample, you see the following:

  • A slideshow starts slowly scrolling through various images.
  • When you stand in front of the sensor and are recognized, a silhouette (semi-transparent body shape) is rendered over the background.
  • When you then raise your hand you should see a button that instructs you to press it.
  • You also see a hand-shaped cursor, which indicates the position of the hand pointer and indicates the primary hand's location and action during grip and press interactions.
  • Once you press the button, the slideshow stops and you are shown a set of interactive controls, variously containing video, images, or text.
  • You may then interact with the controls. Pressing on a control representing an application page will navigate to that page and display the contents of the page in full screen. Each page will contain other interactive controls that allow going back to home screen, opening/closing a picture viewer, playing/pausing a video or scrolling the page contents.

Notes

Note that this sample does not call the APIs directly, but uses all of the WPF controls provided by the Microsoft.Kinect.Toolkit.Controls DLL.

Important

Dismissal of the application slideshow page via mouse interaction is provided only as a convenience to developers to facilitate exploration of the sample application. We recommend that deployed applications DO NOT use mouse movement as a proxy for user engagement.

Behavior is not well defined if a user tries to interact via Kinect-detected hand movements at the same time as someone is using a mouse to interact.

To run a sample you must have the Kinect for Windows SDK installed. To compile a sample, you must have the developer toolkit installed. The latest SDK and developer toolkit are available on the developer download page. If you need help installing the toolkit, look on this page: To Install the SDK and Toolkit. The toolkit includes a sample browser, which you can use to launch a sample or download it to your machine. To open the sample browser, click Start > All Programs > Kinect for Windows SDK [version number] > Developer Toolkit Browser.

If you need help loading a sample in Visual Studio or using Visual Studio to compile, run, or debug, see Opening, Building, and Running Samples in Visual Studio.