ExtensionMethods class

A static class with static extension methods for all form elements (for any objects based on FrameworkElement).

Inherits from

Neurodot.Forms.Silverlight.Controls. LocalizableValidationRole

Syntax

public static class ExtensionMethods

Methods

Name Description
ClearValidationError(FrameworkElement) Hides validation error message on a control.
IsValidationErrorRaised(FrameworkElement) Gets a flag indicating whether a validation error is shown on a control.
RaiseValidationError(FrameworkElement) Shows a visual validation error on a control.
SetValidation(FrameworkElement, string) Sets validation error message to be shown on a control.

 

Remarks

You can call all methods of this class instance methods on any object of type FrameworkElement. When you use instance method syntax to call these methods, omit the first parameter

Validation using methods ClearValidationError(), RaiseValidationError() and SetValidation() does not count when the whole form is validated (i.e. the javascript eForm API method IsValid()  is called) and does not support automatic localization of error messages – to ensure form validation and automatic localization please use validation role classes based on class LocalizedValidatonRole.