Xbox Kinect Hub Remake - An Introduction To New User Interfaces

added by wiredone
10/19/2011 8:52:33 AM

228 Views

I first started playing around with my Kinect at home just to get a feel for what was involved in working with the SDK – I must say that I, like many of you, was amazed, and still am, at how awesomely simple and beautifully designed the API’s in the Kinect NUI framework are. A lot of people have written little Kinect demo’s showing how to create buttons and detect hand location, but I thought I’d try something different. So I set out to mimic some of the Xbox Live's interface elements in WPF.


5 comments

dpeterson
10/19/2011 8:58:16 AM
Excellent post, makes me want to save for a Kinect unit to create some new interfaces of my own (maybe something for XBMC).
Since you gave us the warning about your winform/WPF skills I thought I'd give you a quick hint to improve your example:
private void button_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show(string.Format("{0} Clicked", ((Button)sender).Name));
}

// somewhere in your initializer
button1.Click += button_Click;
button2.Click += button_Click;

I have not checked that code for syntax/other errors, but you get the gist of it I'm sure.

wiredone
10/19/2011 3:08:48 PM
@dpeterson I have the handlers setup. It is in the xaml. The example project at the end of the post has been tested and appears to be complete.

Feel free to check it out and let me know your thoughts.

Doug

dpeterson
10/19/2011 3:11:26 PM
Ah, I just looked at the XAML more closely. I posted my code just to show that you didn't *need* a separate event handler for each button click, but it looks now like you actually did it on purpose. I'm with you now.

bradygaster
10/20/2011 6:11:08 AM
I wish I could kick this twice. It's a great, great introduction to NUI with Kinect. Also answers a few questions relevant to an issue with which I'm dealing in a pet project, so the code does a great job of answering a few of my own questions.

wiredone
10/21/2011 11:52:50 PM
@brady - really glad you enjoyed the post. What project are you working on?

I plan on doing some more posts over time, so would be good to know any issues you are having.