Interface IExtendableViewModel
Interface for extendable viewmodels
Inherited Members
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Namespace: Simplic.UI.MVC
Assembly: Simplic.UI.dll
Syntax
public interface IExtendableViewModel : IViewModelBase, INotifyPropertyChanged
Methods
| Improve this Doc View SourceCustomPropertyChanged(String, Object)
Will be called when a custom property gets changed
Declaration
void CustomPropertyChanged(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the property that way changed |
System.Object | value | New value |
CustomPropertyGetter(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 |