Class DataValidation
Represents a class for Data validation
Inheritance
Namespace: Syncfusion.UI.Xaml.Controls.Data
Assembly: Syncfusion.SfInput.UWP.dll
Syntax
public class DataValidation : Object
Constructors
DataValidation()
Declaration
public DataValidation()
Fields
ErrorMessageProperty
Using a DependencyProperty as the backing store for ErrorMessage. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ErrorMessageProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
HasErrorProperty
Using a DependencyProperty as the backing store for HasError. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty HasErrorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
NotifyOnDataContextChangeProperty
Using a DependencyProperty as the backing store for NotifyOnDataContextChange. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty NotifyOnDataContextChangeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
NotifyOnDataErrorsProperty
Using a DependencyProperty as the backing store for NotifyOnDataErrors. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty NotifyOnDataErrorsProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PropertyPathProperty
Using a DependencyProperty as the backing store for PropertyPath. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PropertyPathProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Methods
GetErrorMessage(DependencyObject)
Gets a string as error message.
Declaration
public static string GetErrorMessage(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object type |
Returns
Type | Description |
---|---|
System.String | string type |
GetHasError(DependencyObject)
Returns a value when set
Declaration
public static bool GetHasError(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetNotifyOnDataContextChange(DependencyObject)
Returns a value when set
Declaration
public static bool GetNotifyOnDataContextChange(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetNotifyOnDataErrors(DependencyObject)
Returns a value when set
Declaration
public static bool GetNotifyOnDataErrors(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object type |
Returns
Type | Description |
---|---|
System.Boolean | boolean value |
GetPropertyPath(DependencyObject)
Gets the Property path
Declaration
public static string GetPropertyPath(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object type |
Returns
Type | Description |
---|---|
System.String | Get value |
SetErrorMessage(DependencyObject, String)
Sets a string as error message.
Declaration
public static void SetErrorMessage(DependencyObject obj, string value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object |
System.String | value | String type |
SetHasError(DependencyObject, Boolean)
Sets if there is an error
Declaration
public static void SetHasError(DependencyObject obj, bool value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object |
System.Boolean | value | Boolean type |
SetNotifyOnDataContextChange(DependencyObject, Boolean)
Sets the value
Declaration
public static void SetNotifyOnDataContextChange(DependencyObject obj, bool value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object type |
System.Boolean | value | boolean value |
SetNotifyOnDataErrors(DependencyObject, Boolean)
Sets the value
Declaration
public static void SetNotifyOnDataErrors(DependencyObject obj, bool value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object type |
System.Boolean | value | boolean type |
SetPropertyPath(DependencyObject, String)
Sets the Property path
Declaration
public static void SetPropertyPath(DependencyObject obj, string value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | Dependency object type |
System.String | value | String type |