Property | Type | Description | |
---|---|---|---|
IsDirtyProperty | PropertyData | ||
IsReadOnlyProperty | PropertyData |
Property | Type | Description | |
---|---|---|---|
CatchUpWithSuspendedAnnotationsValidation | void | ||
ClearIsDirtyOnAllChilds | void | ||
EnsureValidationIsUpToDate | void | ||
FinishInitializationAfterConstructionOrDeserialization | void | ||
GetObjectData | void | ||
GetValidator | IValidator | ||
HandleObjectEventsSubscription | void | ||
IEditableObject | void | ||
IModelValidation | void | ||
INotifyDataErrorInfo | IEnumerable | ||
INotifyDataWarningInfo | IEnumerable | ||
IXmlSerializable | XmlSchema | ||
IXmlSerializable | void | ||
IXmlSerializable | void | ||
Initialize | void | ||
ModelBase | System | ||
NotifyErrorsChanged | void | ||
NotifyWarningsChanged | void | ||
OnDeserialized | void | ||
OnValidated | void | ||
OnValidatedBusinessRules | void | ||
OnValidatedFields | void | ||
OnValidating | void | ||
OnValidatingBusinessRules | void | ||
OnValidatingFields | void | ||
RaisePropertyChanged | void | ||
RaisePropertyChangedForAllRegisteredProperties | void | ||
SetBusinessRuleValidationResult | void | ||
SetFieldValidationResult | void | ||
ValidatePropertyUsingAnnotations | bool | ||
this | stringIDataErrorInfo.Runtime.Serialization | ||
this | stringIDataWarningInfo.Runtime.Serialization |
Method | Description | |
---|---|---|
Equals ( object obj ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
SuspendChangeCallbacks ( ) : IDisposable |
Suspends the change callbacks whenever a property has been called. This is very useful when there are expensive property change callbacks registered with a property that need to be temporarily disabled.
|
|
SuspendChangeNotifications ( bool raiseOnResume = true ) : IDisposable |
Suspends the change notifications until the disposed object has been released.
|
|
SuspendValidations ( bool validateOnResume = true ) : IDisposable |
Suspends the validation until the disposable token has been disposed.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
Validate ( bool force, bool validateDataAnnotations ) : void |
Validates the current object for field and business rule errors. To check whether this object contains any errors, use the INotifyDataErrorInfo.HasErrors property. |
|
operator ( ) : bool |
Implements the operator ==.
|
Method | Description | |
---|---|---|
ClearIsDirtyOnAllChilds ( ) : void |
Clears the IsDirty on all childs.
|
|
GetBusinessRuleErrors ( ) : string |
Gets the current errors errors.
|
|
GetBusinessRuleWarnings ( ) : string |
Gets the current business warnings.
|
|
GetFieldErrors ( string columnName ) : string |
Gets the errors for a specific column.
|
|
GetFieldWarnings ( string columnName ) : string |
Gets the warnings for a specific column.
|
|
InitializeCustomProperties ( ) : void |
Allows the initialization of custom properties. This is a virtual method that is called inside the constructor before the object is fully constructed. Only use when you really know what you are doing. |
|
ModelBase ( SerializationInfo info, StreamingContext context ) : Catel.IoC |
Initializes a new instance of the ModelBase class. Call this method, even when constructing the object for the first time (thus not deserializing). |
|
NotifyValidationResult ( IValidationResult validationResult, bool notifyGlobal ) : void |
Raises the right events based on the validation result.
|
|
OnBeginEdit ( System.ComponentModel.BeginEditEventArgs e ) : void |
Raises the IEditableObject.BeginEdit event.
|
|
OnCancelEdit ( System.ComponentModel.EditEventArgs e ) : void |
Raises the IEditableObject.CancelEdit event.
|
|
OnCancelEditCompleted ( System.ComponentModel.CancelEditCompletedEventArgs e ) : void |
Raises the IAdvancedEditableObject.CancelEditingCompleted event.
|
|
OnEndEdit ( System.ComponentModel.EditEventArgs e ) : void |
Raises the IEditableObject.EndEdit event.
|
|
OnInitialized ( ) : void |
Called when the object is initialized.
|
|
OnInitializing ( ) : void |
Called when the object is being initialized.
|
|
OnPropertyObjectCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void |
Called when a property that implements INotifyCollectionChanged raises the event.
|
|
OnPropertyObjectCollectionItemPropertyChanged ( object sender, |
Called when a property inside a collection that implements INotifyCollectionChanged that implements INotifyPropertyChanged raises the event.
|
|
OnPropertyObjectPropertyChanged ( object sender, |
Called when a property that implements INotifyPropertyChanged raises the event.
|
|
OnValidated ( IValidationContext validationContext ) : void |
Called when the object is validated.
|
|
OnValidatedBusinessRules ( IValidationContext validationContext ) : void |
Called when the object has validated the business rules.
|
|
OnValidatedFields ( IValidationContext validationContext ) : void |
Called when the object has validated the fields.
|
|
OnValidating ( IValidationContext validationContext ) : void |
Called when the object is validating.
|
|
OnValidatingBusinessRules ( IValidationContext validationContext ) : void |
Called when the object is validating the business rules.
|
|
OnValidatingFields ( IValidationContext validationContext ) : void |
Called when the object is validating the fields.
|
|
RaisePropertyChanged ( object sender, Catel.Data.AdvancedPropertyChangedEventArgs e ) : void |
Raises the INotifyPropertyChanged.PropertyChanged event. This method is overriden en does not call the base because lots of additional logic is added in this class. The RaisePropertyChanged(object,System.ComponentModel.PropertyChangedEventArgs,bool,bool) will explicitly call ObservableObject.RaisePropertyChanged(object, AdvancedPropertyChangedEventArgs). |
|
SetDirtyAndAutomaticallyValidate ( string propertyName, bool setDirtyAndAllowAutomaticValidation ) : void |
Sets the IsDirty property and automatically validate if required.
|
|
SetParent ( IParent parent ) : void |
Sets the new parent of this object.
|
|
ShouldPropertyChangeUpdateIsDirty ( string propertyName ) : bool |
Determines whether a specific property change should update
|
|
Validate ( bool force = false ) : void |
Validates the current object for field and business rule errors. To check whether this object contains any errors, use the INotifyDataErrorInfo.HasErrors property. |
|
ValidateBusinessRules ( List |
Validates the business rules of this object. Override this method to enable validation of business rules.
|
|
ValidateFields ( List |
Validates the field values of this object. Override this method to enable validation of field values.
|
Method | Description | |
---|---|---|
CatchUpWithSuspendedAnnotationsValidation ( ) : void |
Catches up with suspended annotations validation.
|
|
ClearIsDirtyOnAllChilds ( object obj, HashSet |
Clears the IsDirty on all childs.
|
|
EnsureValidationIsUpToDate ( bool constraint = true ) : void |
Ensures the validation is up to date.
|
|
FinishInitializationAfterConstructionOrDeserialization ( ) : void |
Finishes the initialization after construction or deserialization.
|
|
GetObjectData ( SerializationInfo info, StreamingContext context ) : void | ||
GetValidator ( ) : IValidator |
Gets the validator. If the field is
|
|
HandleObjectEventsSubscription ( string propertyName, object propertyValue ) : void |
Handles the object events subscription. This means that the old value will be removed from the event subscriptions, and the new value will be subscribed to.
|
|
IEditableObject ( ) : void |
Begins an edit on an object.
|
|
IModelValidation ( bool force ) : void |
Validates the current object for field and business rule errors. To check whether this object contains any errors, use the INotifyDataErrorInfo.HasErrors property. |
|
INotifyDataErrorInfo ( string propertyName ) : IEnumerable |
Gets the validation errors for a specified property or for the entire object.
|
|
INotifyDataWarningInfo ( string propertyName ) : IEnumerable |
Gets the warnings for the specific property name.
|
|
IXmlSerializable ( ) : XmlSchema |
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the T:System.Xml.Serialization.XmlSchemaProviderAttribute to the class.
|
|
IXmlSerializable ( XmlReader reader ) : void |
Generates an object from its XML representation.
|
|
IXmlSerializable ( XmlWriter writer ) : void |
Converts an object into its XML representation.
|
|
Initialize ( ) : void |
Initializes the object by setting default values.
|
|
ModelBase ( ) : System |
Initializes static members of the ModelBase class.
|
|
NotifyErrorsChanged ( string propertyName, bool notifyHasErrors ) : void |
Notifies all listeners that the errors for the specified property have changed. If the propertyName is
|
|
NotifyWarningsChanged ( string propertyName, bool notifyHasWarnings ) : void |
Notifies all listeners that the warnings for the specified property have changed. If the propertyName is
|
|
OnDeserialized ( StreamingContext context ) : void | ||
OnValidated ( ) : void | ||
OnValidatedBusinessRules ( ) : void | ||
OnValidatedFields ( ) : void | ||
OnValidating ( ) : void | ||
OnValidatingBusinessRules ( ) : void | ||
OnValidatingFields ( ) : void | ||
RaisePropertyChanged ( object sender, |
Invoked when a property value has changed.
|
|
RaisePropertyChangedForAllRegisteredProperties ( ) : void |
Invokes the property changed for all registered properties. Using this method does not set the IsDirty property to |
|
SetBusinessRuleValidationResult ( IBusinessRuleValidationResult validationResult ) : void | ||
SetFieldValidationResult ( IFieldValidationResult validationResult ) : void | ||
ValidatePropertyUsingAnnotations ( string propertyName, object value, PropertyData catelPropertyData ) : bool |
Validates the property using data annotations.
|
|
this ( string columnName ) : stringIDataErrorInfo.Runtime.Serialization |
Gets an error for a specific column.
|
|
this ( string columnName ) : stringIDataWarningInfo.Runtime.Serialization |
Gets a warning for a specific column.
|
public Equals ( object obj ) : bool | ||
obj | object | The |
return | bool |
protected GetBusinessRuleWarnings ( ) : string | ||
return | string |
protected GetFieldErrors ( string columnName ) : string | ||
columnName | string | Column name. |
return | string |
protected GetFieldWarnings ( string columnName ) : string | ||
columnName | string | Column name. |
return | string |
protected InitializeCustomProperties ( ) : void | ||
return | void |
protected ModelBase ( SerializationInfo info, StreamingContext context ) : Catel.IoC | ||
info | SerializationInfo | SerializationInfo object, null if this is the first time construction. |
context | StreamingContext | StreamingContext object, simple pass a default new StreamingContext() if this is the first time construction. |
return | Catel.IoC |
protected NotifyValidationResult ( IValidationResult validationResult, bool notifyGlobal ) : void | ||
validationResult | IValidationResult | The validation result. |
notifyGlobal | bool | If set to |
return | void |
protected OnBeginEdit ( System.ComponentModel.BeginEditEventArgs e ) : void | ||
e | System.ComponentModel.BeginEditEventArgs | The |
return | void |
protected OnCancelEdit ( System.ComponentModel.EditEventArgs e ) : void | ||
e | System.ComponentModel.EditEventArgs | The |
return | void |
protected OnCancelEditCompleted ( System.ComponentModel.CancelEditCompletedEventArgs e ) : void | ||
e | System.ComponentModel.CancelEditCompletedEventArgs | The |
return | void |
protected OnEndEdit ( System.ComponentModel.EditEventArgs e ) : void | ||
e | System.ComponentModel.EditEventArgs | The |
return | void |
protected OnPropertyObjectCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void | ||
sender | object | The sender. |
e | NotifyCollectionChangedEventArgs | The |
return | void |
protected OnPropertyObjectCollectionItemPropertyChanged ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | void |
protected OnPropertyObjectPropertyChanged ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | void |
protected OnValidated ( IValidationContext validationContext ) : void | ||
validationContext | IValidationContext | The validation context. |
return | void |
protected OnValidatedBusinessRules ( IValidationContext validationContext ) : void | ||
validationContext | IValidationContext | The validation context. |
return | void |
protected OnValidatedFields ( IValidationContext validationContext ) : void | ||
validationContext | IValidationContext | The validation context. |
return | void |
protected OnValidating ( IValidationContext validationContext ) : void | ||
validationContext | IValidationContext | The validation context. |
return | void |
protected OnValidatingBusinessRules ( IValidationContext validationContext ) : void | ||
validationContext | IValidationContext | The validation context. |
return | void |
protected OnValidatingFields ( IValidationContext validationContext ) : void | ||
validationContext | IValidationContext | The validation context. |
return | void |
protected RaisePropertyChanged ( object sender, Catel.Data.AdvancedPropertyChangedEventArgs e ) : void | ||
sender | object | The sender. |
e | Catel.Data.AdvancedPropertyChangedEventArgs | The |
return | void |
protected SetDirtyAndAutomaticallyValidate ( string propertyName, bool setDirtyAndAllowAutomaticValidation ) : void | ||
propertyName | string | Name of the property. |
setDirtyAndAllowAutomaticValidation | bool | If set to |
return | void |
protected SetParent ( IParent parent ) : void | ||
parent | IParent | The new parent. |
return | void |
protected ShouldPropertyChangeUpdateIsDirty ( string propertyName ) : bool | ||
propertyName | string | |
return | bool |
public SuspendChangeCallbacks ( ) : IDisposable | ||
return | IDisposable |
public SuspendChangeNotifications ( bool raiseOnResume = true ) : IDisposable | ||
raiseOnResume | bool | if set to |
return | IDisposable |
public SuspendValidations ( bool validateOnResume = true ) : IDisposable | ||
validateOnResume | bool | |
return | IDisposable |
protected Validate ( bool force = false ) : void | ||
force | bool | If set to |
return | void |
public Validate ( bool force, bool validateDataAnnotations ) : void | ||
force | bool | If set to |
validateDataAnnotations | bool | If set to |
return | void |
protected ValidateBusinessRules ( List |
||
validationResults | List |
The validation results, add additional results to this list. |
return | void |
protected ValidateFields ( List |
||
validationResults | List |
The validation results, add additional results to this list. |
return | void |
public static PropertyData IsDirtyProperty | ||
return | PropertyData |