ViewModel Class |
Namespace: BionicCode.Utilities.Net.Standard.ViewModel
public abstract class ViewModel : IViewModel, INotifyPropertyChanged, INotifyDataErrorInfo
The ViewModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetErrors |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetPropertyErrors |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsValueValid<TValue> |
Can be used to check whether a value is valid.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnErrorsChanged |
Raised when the validation state of the view model has changed (e.g. error added or removed).
|
![]() | OnPropertyChanged |
Method called to fire a PropertyChanged event.
Also raises the PropertyChanged event to support binding.
|
![]() | PropertyHasError |
Checks whether the specified property has errors or is valid.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TrySetValue<TValue>(TValue, TValue, String) |
Generic property setter. Sets the value of any property of the extending view model by passing in a the corresponding property backing field. Automatically raises the PropertyChanged event for this property.
|
![]() | TrySetValue<TValue>(TValue, Func<TValue, ValueTuple<Boolean, IEnumerable<String>>>, TValue, Boolean, Boolean, String) |
Sets the value of the referenced property and executes a validation delegate.
|
![]() | TrySetValueSilent<TValue>(TValue, TValue, String) |
Generic property setter. Silently sets the value of any property of the extending view model by passing in a the corresponding property backing field. Suppresses a PropertyChanged event for this property.
|
![]() | TrySetValueSilent<TValue>(TValue, Func<TValue, ValueTuple<Boolean, IEnumerable<String>>>, TValue, Boolean, Boolean, String) |
Silently sets the value of the referenced property without raising PropertyChanged and executes a validation delegate.
|
Name | Description | |
---|---|---|
![]() | ErrorsChanged | Occurs when the validation errors have changed for a property or for the entire entity. |
![]() | PropertyChanged |
Event fired whenever a child property changes its value.
|
![]() | PropertyValueChanged |
PropertyChanged implementation that sends old value and new value of the change and raises the INotifyPropertyChanged event.
|
Name | Description | |
---|---|---|
![]() | ToDictionary() | Overloaded.
Coverts any type to a Dictionary<TKey, TValue>, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) |
![]() | ToDictionary() | Overloaded.
Coverts any type to a Dictionary<TKey, TValue>, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) |