Kanzi 3.9.10
PluginPropertyValueEditorContextFactory Interface Reference

Allows to define the way ViewModel for the editor is created. More...

Public Member Functions

PluginPropertyValueEditorContext Create (object initialValue, Action< object > valueSetCallback)
 Creates ViewModel for the property editor.
 

Detailed Description

Allows to define the way ViewModel for the editor is created.

Member Function Documentation

◆ Create()

PluginPropertyValueEditorContext Create ( object initialValue,
Action< object > valueSetCallback )

Creates ViewModel for the property editor.

Parameters
initialValueInitial value of the property when the editor is created.
valueSetCallbackAction 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.