ValidatableMemberTValue, TChangeType Class |
Namespace: SD.LLBLGen.Pro.Core.GeneralDataStructures
public class ValidatableMember<TValue, TChangeType> : CommandifiedMember<TValue, TChangeType>
The ValidatableMemberTValue, TChangeType type exposes the following members.
Name | Description | |
---|---|---|
ValidatableMemberTValue, TChangeType(String, TChangeType, ErrorContainer) |
Initializes a new instance of the ValidatableMemberTValue, TChangeType class.
| |
ValidatableMemberTValue, TChangeType(String, TChangeType, ErrorContainer, TValue) |
Initializes a new instance of the ValidatableMemberTValue, TChangeType class.
|
Name | Description | |
---|---|---|
LoggedErrors |
Gets the logged errors.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
MemberName |
Gets the name of the member.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
MemberValue |
Gets or sets the member value.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ThrowExceptionOnValidationError |
Gets or sets a value indicating whether an exception should be thrown if validation fails (true, default) or not (false)
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ValidatorToUse |
Gets or sets the validator to use.
|
Name | Description | |
---|---|---|
BindToElementChanged |
Binds to INotifyElementChanged.ElementChanged on the value set in memberValue, if supported.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
BindToElementRemoved |
Binds to the ElementRemoved event
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnAfterMemberValueSet |
Called after the membervalue has been set to a new value.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
OnBeforeMemberValueSet |
Called before the membervalue is about to be set to the value specified.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
OnMemberSetToSameValue |
Called when the member is set to the same value it already has
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ResetErrorForMember |
Resets the error for member.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
SetInitialValue |
Sets the initial value of this commandified member. It does this by bypassing the actual member set function.
Use this method to avoid events being raised while setting the value and also when you want to avoid using commands to set the value, as the
memberValue is set without using commands. No validation occurs as well, so only use this if you want to set the initial value after the ctor
has already been called.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ToString | (Inherited from CommandifiedMemberTValue, TChangeType.) | |
UnbindFromElementChanged |
Unbinds from the ElementChanged event
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
UnbindFromElementRemoved |
Unbinds from the ElementRemoved event
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ValidateMemberValue |
Validates the member value.
(Overrides CommandifiedMemberTValue, TChangeTypeValidateMemberValue(TValue, Boolean, Boolean, TValue).) |
Name | Description | |
---|---|---|
ErrorReset |
Event which is raised explicitly to signal subscribers that the error has been reset. This event is only raised if there's a necessity for it:
If there's an error set and this object was set to the same value, resetting the error, subscribers don't know the error has been reset as the
member value itself won't be changed. This event will notify them that the error has been reset and they should raise a Propertychanged event to
notify UI elements that they can clear ErrorInfo providers.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ValueChanged |
Event which is raised when MemberValue is set to a different value. If MemberValue's value is a mutable object and implements INotifyElementChanged, the
event is also raised when some values inside the value object change. In that case, the original value and the new value in the event args
are the same.
(Inherited from CommandifiedMemberTValue, TChangeType.) | |
ValueElementRemoved |
Event which is raised when the value implements INotifyElementRemoved and it got removed from its container. This event
is used in that situation to notify observers that the value of this CommandifiedMember is no longer usable.
(Inherited from CommandifiedMemberTValue, TChangeType.) |