Click or drag to resize

ValidationModelBase Class

An extension of ModelBase that adds validation elements to a model.
Inheritance Hierarchy
SystemObject
  Xcalibur.Extensions.MVVM.ModelsModelBase
    Xcalibur.Extensions.MVVM.ModelsValidationModelBase

Namespace:  Xcalibur.Extensions.MVVM.Models
Assembly:  Xcalibur.Extensions.MVVM (in Xcalibur.Extensions.MVVM.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public abstract class ValidationModelBase : ModelBase, 
	IValidation

The ValidationModelBase type exposes the following members.

Properties
  NameDescription
Public propertyHasValidationErrors
Gets or sets a value indicating whether this instance has validation errors.
Public propertyIdentifier
Gets the identifier.
(Inherited from ModelBase.)
Public propertyIsActive
Gets or sets a value indicating whether this instance is active.
(Inherited from ModelBase.)
Public propertyValidationExceptionItems
Gets or sets the validation exception items.
Top
Methods
  NameDescription
Public methodAddValidation
Sets a property to validate on update. Note: validation attributes must be set on the property for this to work.
Public methodClearSubscriptions
Clears all subscriptions from the instance.
(Inherited from ModelBase.)
Public methodClearSubscriptions(String, NullableGuid)
Clears subscriptions for a specific property, or if one is not specified; all subscriptions to the instance.
(Inherited from ModelBase.)
Public methodClearSubscriptionsT(ExpressionFuncT, NullableGuid)
Clears subscriptions for a specific property, or if one is not specified; all subscriptions to the instance.
(Inherited from ModelBase.)
Public methodClearValidation
Clears all properties from validation.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleNotifyOfChangeT(ExpressionFuncT, T, T, Action)
Updates a property directly by comparing values and then firing its OnPropertyChanged event if necessary.
(Inherited from ModelBase.)
Public methodCode exampleNotifyOfChangeT(String, T, T, Action)
Updates a property directly by comparing values and then firing its OnPropertyChanged event if necessary.
(Inherited from ModelBase.)
Public methodCode exampleNotifyOfChangeT(T, T, String, Action)
Updates a property directly by comparing values and then firing its OnPropertyChanged event if necessary.
(Inherited from ModelBase.)
Public methodRemoveValidation
Removes a property from validating on update.
Public methodSubscribe(String, ActionObject, NullableGuid)
Subscribes an action to a specific property that will be called during that property's OnPropertyChanged event.
(Inherited from ModelBase.)
Public methodSubscribeT(ExpressionFuncT, ActionObject, NullableGuid)
Subscribes an action to a specific property that will be called during that property's OnPropertyChanged event.
(Inherited from ModelBase.)
Public methodToString
Returns a String that represents this instance.
(Inherited from ModelBase.)
Public methodCode exampleUpdateProperty(String, Action)
Informs a property that it should invoke its OnPropertyChanged event.
(Inherited from ModelBase.)
Public methodCode exampleUpdatePropertyT(ExpressionFuncT, Action)
Informs a property that it should invoke its OnPropertyChanged event.
(Inherited from ModelBase.)
Public methodValidateAll
Validates all items in the validation pool.
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from ModelBase.)
Top
See Also