You can hook to events in WPF the same way as in WinForms. In general that should work fine in WPF, assuming you have all the rest in place, the ColorImageFrameReady_handler and the "kinectSensor.ColorFrameReady = new EventHandler..." is changed to kinectSensor.ColorFrameReady += new EventHandler... ("+=")
@gduncan411: I've got it working now. Its now placed right after "this.sensor.Start();"
I thought I could put it before "sensor.Start" like how DrawingGroup "Image.Source = this.imageSource;" placed in "WindowLoaded" function. Anyway, it's working now. Thank you!
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.