Class Validation
Provides attached properties regarding validation.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public static class Validation
Fields
View SourceHasErrorsProperty
Defines the DependencyProperty for SetHasErrors(DependencyObject, bool) and GetHasErrors(DependencyObject).
Declaration
public static readonly DependencyProperty HasErrorsProperty
Field Value
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| DependencyObject | element | The element. |
Returns
| Type | Description |
|---|---|
| bool |
|
SetHasErrors(DependencyObject, bool)
Sets a value indicating whether the attached element has errors.
Declaration
public static void SetHasErrors(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
| bool | value | if set to |