Adding event handling for DeviceProperties