Interface IViewModelHook
Interface from which all viewmodel hooks must derive
Namespace: Simplic.Framework.UI
Assembly: Simplic.Framework.Base.dll
Syntax
public interface IViewModelHook
Methods
| Improve this Doc View SourceCustomPropertyGetter(String, Object, PropertyInfo)
Will be called when getting values from the getter
Declaration
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
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 |