Interface IObservableClass
Interface IObservableClass
Implements the IBindable
Implements the
Inherited Members
Namespace: ISynergy.Framework.Core.Abstractions.Base
Assembly: ISynergy.Framework.Core.dll
Syntax
public interface IObservableClass : IBindable
Properties
View SourceAutomaticValidationTrigger
Automatic validation trigger.
Declaration
bool AutomaticValidationTrigger { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Errors
Gets the errors.
Declaration
ObservableCollection<KeyValuePair<string, string>> Errors { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<KeyValuePair<System.String, System.String>> | The errors. |
IsDirty
Gets a value indicating whether this instance is dirty.
Declaration
bool IsDirty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsValid
Returns true if ... is valid.
Declaration
bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Properties
Gets the properties.
Declaration
Dictionary<string, IProperty> Properties { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, IProperty> | The properties. |
Validator
Gets or sets the validator.
Declaration
Action<IObservableClass> Validator { get; set; }
Property Value
Type | Description |
---|---|
Action<IObservableClass> | The validator. |
Methods
View SourceAddValidationError(String, String)
Adds an error message to the validation errors.
Declaration
void AddValidationError(string propertyName, string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
System.String | errorMessage |
MarkAsClean()
Marks as clean.
Declaration
void MarkAsClean()
Revert()
Reverts this instance.
Declaration
void Revert()
Validate(Boolean)
Validates this instance.
Declaration
bool Validate(bool validateUnderlayingProperties = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | validateUnderlayingProperties |
Returns
Type | Description |
---|---|
System.Boolean |
|
Extension Methods
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)