Wifi - What caused the error was that I also needed to call DeviceManager.ConnectToCamera() before connecting to the camera's Wifi. I had assumed you couldn't connect to the camera before a Wifi connection was established.
Camera property changes - As Duka said, there is no central event one could easily tap into. However, you can detect individual property changes by implementing something like this:
Code: Select all
using System.ComponentModel;
...
MTPdevice.CompressionSetting.PropertyChanged += CompressionSetting_PropertyChanged;
private void CompressionSetting_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
// e.PropertyName is one of the following. You can take action for instance if "Value", "NumericValue" or "IsEnabled" changes.
// "Value"
// "Values"
// "NumericValue"
// "IsEnabled"
// "Available"
// "CameraProperty"
// "Code"
// "DateTime"
// "HaveError"
// "HostMode"
// "ErrorColor"
// ... and a few others
... do something here ...
}
...
Code: Select all
MTPdevice.AdvancedProperties[0].PropertyChanged += PropertyName_PropertyChanged;