Basic implementation of the plugin editor ViewModel. More...
Public Member Functions | |
BasePluginEditorViewModel (object initialValue, Action< object > valueSetCallback) | |
BasePluginEditorViewModel constructor More... | |
virtual void | HandleValueChange (object value) |
Handles the change of a property value when the value changes in Kanzi Studio. More... | |
Protected Member Functions | |
virtual void | OnPropertyChanged (string propertyName) |
Properties | |
virtual object | PropertyValue [get, set] |
Gets or sets the value of a property. More... | |
Action< object > | ValueSetCallback [get, set] |
Events | |
PropertyChangedEventHandler | PropertyChanged |
PropertyChanged event. More... | |
Basic implementation of the plugin editor ViewModel.
|
inline |
BasePluginEditorViewModel constructor
initialValue | Initial value of the property when Kanzi Studio creates the editor. |
valueSetCallback | Action to run when the editor changes the value of the property. This is how Kanzi Studio knows that the user changed the value of a property using the editor. |
|
inlinevirtual |
Handles the change of a property value when the value changes in Kanzi Studio.
Kanzi Studio calls this method when the value of a property changes. Kanzi Studio calls it also when the user changes the value using the editor.
value | Current value of the property. |
|
getset |
Gets or sets the value of a property.
Represents the value of a property. You can bind a property editor to this value.
PropertyChangedEventHandler PropertyChanged |
PropertyChanged event.
INotifyPropertyChanged implementation.