Class Validation
Provides attached properties regarding validation.
Inheritance
System.Object
Validation
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public static class Validation
Fields
View SourceHasErrorsProperty
Defines the System.Windows.DependencyProperty for SetHasErrors(DependencyObject, Boolean) and GetHasErrors(DependencyObject).
Declaration
public static readonly DependencyProperty HasErrorsProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Methods
View SourceGetHasErrors(DependencyObject)
Gets a value indicating whether the attached element has errors.
Declaration
public static bool GetHasErrors(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | element | The element. |
Returns
Type | Description |
---|---|
System.Boolean |
|
SetHasErrors(DependencyObject, Boolean)
Sets a value indicating whether the attached element has errors.
Declaration
public static void SetHasErrors(DependencyObject element, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | element | The element. |
System.Boolean | value | if set to |