Multi Page Application with WPF and Kinect SDK 1.0 ?
-
Tuesday, March 06, 2012 2:16 PM
Hello
I'm trying to make a Multi Page Application with the Kinect SDK 1.0
I can trigger a Button Event and in this Button Event i want to switch to a new Page.
private void button6_Click(object sender, RoutedEventArgs e)
{
Page2 page2 = new Page2();
this.NavigationService.Navigate(page2);
//StopKinect(kinectSensorChooser1.Kinect);
}I'm working with the Microsoft.Samples.Kinect.WpfViewers and i got the Video Stream in this page1 with the kinectSensorChooser1 (a XAML Element that can be used via drag and drop from the toolbox)
As i switch to new Page2 the kinectSensorChooser is not working anymore, i also tried to pass the kinectsensor object to the page2 but this is not working at all. When i try to pass it and not stop the KinectSensor, the Page1 is running in the background an generating X/Y Data via Console.Writeln but Page2 doesn't get values and i can't the see the video image.
Is there a nice and easy way to make multipage Applications with the Kinect SDK 1.0?
All Replies
-
Tuesday, March 06, 2012 7:02 PMYou could use a class to hold important functions and global variables should be declared in the code page for the window.xaml file before everything except import statements. I think making the sensor variable global to the whole wpf form to stop the kinect anywhere in the same wpf form would be a nice way to do it.
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda
- Edited by The Thinker Tuesday, March 06, 2012 7:07 PM
-
Tuesday, March 06, 2012 9:52 PMModerator
Your top level WPF Window could host a <Frame /> element.
Put the KinectSensorChooser in the Window...which never goes away.
Navigate the pages inside the Frame.I would go look at WPF samples/forums to solve this.
Let us know if you need help or when you solve this.Thanks, Rob Relyea | Kinect for Windows team
- Proposed As Answer by Carmine Si - MSFTMicrosoft Employee, Owner Thursday, March 08, 2012 6:45 PM

