ThisForm class

This static class provides methods to manage form controls and state.

Syntax

public static class ThisForm

Properties

Name Description
CurrentCulture Gets the current culture of the form in the RFC 4646 format (e.g. en-US, cs-CZ etc.).
IsEnabled Gets or sets a value indicating whether the user can interact with the whole form.

 

Methods

Name Description
FindElement(string) Returns a reference to a control on a form as a FrameworkElement.
FindElement<T>(string) Returns a reference to a control on a form as T.
GetFormMetadataValue(string) Returns a metadata value with a supplied key from the current form.
GetLocalizedString(string) Returns a localized text with supplied name from the currently loaded localization resource of the current form.
PrintAll Prints the current form.
RegisterValidationRole(

FrameworkElement, ValidationRole)

Registers validation for the selected control.
RemoveValidationRole(

FrameworkElement)

Removes validation for selected control.
SubmitToGGWebService(string, string, SubmitToGGWebServiceCallback) Sends a submission to Government Gateway WCF service using current user’s security token.