Share via


KinectSensor.PropertyChanged Event

Occurs when a property of the KinectSensor class changes.

Syntax

public:
event PropertyChangedEventHandler^ PropertyChanged {
         EventRegistrationToken add (PropertyChangedEventHandler^ value);
         void remove (EventRegistrationToken token);
}
public event PropertyChangedEventHandler PropertyChanged
function onPropertyChanged(eventArgs) { /* Your code */ }

// addEventListener syntax
kinectSensor.addEventListener("propertychanged", onPropertyChanged);
kinectSensor.removeEventListener("propertychanged", onPropertyChanged);

- or -

kinectSensor.onpropertychanged = onPropertyChanged;

Requirements

Namespace: WindowsPreview.Kinect

Metadata: windowspreview.kinect.winmd

See also

Reference

KinectSensor Class
WindowsPreview.Kinect Namespace