public DeviceInstanceControl(DeviceInstance instance) { m_instance = instance; m_propertyControlMapping = new BidirectionalDictionary <DeviceInstanceProperty, View>(); InitializeComponent(); BindingContext = new DeviceInstanceViewModel(instance); BuildUI(); m_instance.PropertyChanged += Instance_PropertyChanged; }
public DeviceInstanceViewModel(DeviceInstance instance) { m_instance = instance; }