Click or drag to resize

ViewModel Class

Base class for all ViewModel classes implementing the INotifyPropertyChanged interface.
Inheritance Hierarchy
SystemObject
  Enkoni.Framework.UI.MvvmViewModel

Namespace:  Enkoni.Framework.UI.Mvvm
Assembly:  Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntax
[SerializableAttribute]
public abstract class ViewModel : INotifyPropertyChanged, 
	IDataErrorInfo

The ViewModel type exposes the following members.

Constructors
  NameDescription
Protected methodViewModel
Initializes a new instance of the ViewModel class.
Top
Properties
  NameDescription
Public propertyError
Gets an error message indicating what is wrong with this object.
Public propertyItem
Gets the error message for the property with the given name.
Public propertyMessenger
Gets or sets an instance of a IMessenger used to send messages to other objects. If , this class will attempt to broadcast using the Messenger's default instance.
Top
Methods
  NameDescription
Protected methodAddValidationRuleT
Adds a validation rule for a property.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEachPropertyValid
Determines whether each property is valid.
Protected methodIsPropertyValidT(ExpressionFuncT)
Determines whether the property is valid or not.
Public methodIsPropertyValidTViewModel, TProperty(ExpressionFuncTViewModel, TProperty)
Determines whether the specified property contains a valid value.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRaiseAllPropertiesChanged
Raises the PropertyChanged event with string.Empty. (Indicates all properties on the object have changed).
Protected methodRaisePropertyChanged(String)
Raises the PropertyChanged event.
Protected methodRaisePropertyChangedT(ExpressionFuncT)
Raises the PropertyChanged event.
Protected methodRaisePropertyChangedT(ExpressionFuncT, T, T)
Raises the PropertyChanged event and sends a PropertyChanged message.
Protected methodRemoveValidationRuleT
Removes a validation rule from a property.
Protected methodSendPropertyChangedMessageT(ExpressionFuncT, T, T)
Sends a PropertyChangedMessageT using either the instance of the Messenger that was passed to this class (if available) or the Messenger's default instance.
Protected methodSendPropertyChangedMessageT(String, T, T)
Sends a PropertyChangedMessageT using either the instance of the Messenger that was passed to this class (if available) or the Messenger's default instance.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Fields
  NameDescription
Public fieldStatic memberIsInDesignMode
Gets a value indicating whether the control is in design mode (running in Blend or Visual Studio).
Top
See Also