Class ExtendableViewModel
Viewmodel which inherits ExtendableViewModel and enables python extensions by default
Inheritance
System.Object
ExtendableViewModel
Implements
Namespace: Simplic.Framework.UI
Assembly: Simplic.Framework.Base.dll
Syntax
public class ExtendableViewModel : ExtendableViewModelBase, IPyExtendableViewModel
Constructors
| Improve this Doc View SourceExtendableViewModel()
Initialize new extendable viewmodel
Declaration
public ExtendableViewModel()
Properties
| Improve this Doc View SourcePyHook
Gets a viewmodel hooks
Declaration
public IViewModelHook PyHook { get; }
Property Value
Type | Description |
---|---|
IViewModelHook |
Methods
| Improve this Doc View SourceCustomPropertyGetter(String, Object, PropertyInfo)
Will be called when getting values from the getter
Declaration
public override object CustomPropertyGetter(string name, object value, PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the property |
System.Object | value | Value that is currently stored in the field of the property |
System.Reflection.PropertyInfo | propertyInfo | Property informatiopn |
Returns
Type | Description |
---|---|
System.Object | Value to return from the getter |
CustomPropertySetter(String, Object, out Object, PropertyInfo)
Will be called before the custom property is changed
Declaration
public override bool CustomPropertySetter(string name, object inValue, out object outValue, PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the property to change |
System.Object | inValue | Value that was passed into the setter |
System.Object | outValue | Value that should be set |
System.Reflection.PropertyInfo | propertyInfo | Property information |
Returns
Type | Description |
---|---|
System.Boolean | True if the setter should set the value |