TextBoxValidation Class

TextBox with attributes and validation methods.

Definition

Namespace: Aliquo.Windows.Controls
Assembly: Aliquo.Windows.Controls (in Aliquo.Windows.Controls.dll) Version: 5.0.9179.22656
C#
public class TextBoxValidation : TextBox
Inheritance
Object    DispatcherObject    DependencyObject    Visual    UIElement    FrameworkElement    Control    TextBoxBase    TextBox    TextBoxValidation

Constructors

TextBoxValidation Constructor class.

Properties

ButtonsMaxHeight Gets or sets the maximum height limit for buttons.
DateSelected Gets or sets the selected date of the control.
Decimals Gets or sets the number of decimal places in the number.
DecreaseCommand Command that decreases the numeric value.
DisplayText Gets or sets the string that is displayed when the control does not have focus.
FieldTypeName Get or set the type or name of the field to validate.
Format Gets or sets a string that specifies how to format the value contained in the text box.
HasWarning Gets a value indicating whether the control has a warning message.
HiddenData Gets or sets a value indicating whether the contents of the text box are hidden from the user.
IncreaseCommand Command that increases the numeric value.
InfoColor Gets or sets the color of the information to display.
InfoText Gets or sets an information text to display.
IsButtonsMaxHeight Gets a value indicating whether the buttons are at their maximum height.
IsDropDownOpen Gets or sets a value indicating whether the dropdown is open or closed.
LinkButtonCommand Gets or sets the command that is invoked when the link button is pressed.
LinkButtonCommandParameter Gets or sets the parameter that is passed to the link button command.
LinkButtonCommandTarget Gets or sets the element on which the specified link button command occurs.
LinkButtonImageSource Gets or sets the source of a custom image for the link button.
LinkButtonVisible Gets or sets a value indicating whether the link button is visible.
LocationScreen Gets a comma-delimited string describing the dimensions and absolute location of this element on the screen. The string consists of the following values: 'Left, Top, Width, Height'.
Mask Gets or sets a string that specifies the edit mask for the text box.
MaskType Gets or sets the type of editing mask.
MaxValue Gets or sets the maximum value of the number.
MinValue Gets or sets the minimum value of the number.
PromptChar Gets or sets the character used to represent data entry in the edit mask.
ReferenceField Gets or sets the name of the field to validate that will be displayed in the required field message.
Required Gets or sets a value indicating that the field is required.
RequiredIsEmpty Indicates that the required field is empty.
RequiredMessage Gets the required field message text.
ResourceProvider Gets or sets the string resource provider that is used to retrieve and validate the entered data.
SelectTodayCommand Command that allows you to select the current date from the calendar.
SpinButtonVisible Gets or sets a value indicating whether the numeric value increment and decrement buttons are visible.
StepValue Gets or sets the jump value of the number.
TodayTitle Text to represent the command SelectTodayCommand.
ValidationErrorMessage Gets or sets a custom error message to display if the validation mode check fails.
ValidationExpresion Gets or sets the allowed, disallowed characters, or regular expression to use.
ValidationMode Gets or sets the validation mode.
Value Underlying value of the text box.
ValueBinding Gets or sets the data binding.
ValueMaskFormat Gets or sets a value that specifies how the value of the text box is formatted when ValidationMode is set to MaskEdit.
WarningMessage Gets the current warning message.
Watermark Specifies the text that is displayed as a watermark when the control content is empty.
WatermarkMode Gets or sets the mode in which the watermark is displayed.

Methods

ClearWarning Removes warning message and validation errors from the control.
GetFormatOrDefault Gets a string with the set or default format of the data.
GetMaskEditOrDefault Gets a string with the edit mask set or default.
OnApplyTemplate OnApplyTemplate method.
(Overrides TextBoxBaseOnApplyTemplate)
SetWarning Set a warning message on the control.
UpdateTextInputToValueSource Updates the Value property with the data entered in the text box and sends the value to the data binding source property.
WriteText Writes a valid text in the control

Events

LinkButtonClick Occurs when the link button is clicked.

Fields

ButtonsMaxHeightProperty Identify the dependency property ButtonsMaxHeight.
DateSelectedProperty Identifies the dependency property DateSelected.
DecimalsProperty Identifies the dependency property Decimals.
DisplayTextProperty Identifies the dependency property DisplayText.
FieldTypeNameProperty Identifies the dependency property FieldTypeName.
FormatProperty Identifies the dependency property Format.
HasWarningProperty Identifies the dependency property HasWarning.
HiddenDataProperty Identifies the dependency property HiddenData.
InfoColorProperty Identifies the dependency property InfoColor.
InfoTextProperty Identifies the dependency property InfoText.
IsButtonsMaxHeightProperty Identify the dependency property IsButtonsMaxHeight.
IsDropDownOpenProperty Identifies the dependency property IsDropDownOpen.
LinkButtonCommandParameterProperty Identify the dependency property LinkButtonCommandParameter.
LinkButtonCommandProperty Identify the dependency property LinkButtonCommand.
LinkButtonCommandTargetProperty Identify the dependency property LinkButtonCommandTarget.
LinkButtonImageSourceProperty Identify the dependency property LinkButtonImageSource.
LinkButtonVisibleProperty Identifies the dependency property LinkButtonVisible.
LocationScreenProperty Identifies the dependency property LocationScreen.
MaskProperty Identify the dependency property Mask.
MaskTypeProperty Identifies the dependency property MaskType.
MaxValueProperty Identifies the dependency property MaxValue.
MinValueProperty Identifies the dependency property MinValue.
ReferenceFieldProperty Identifies the dependency property ReferenceField
RequiredIsEmptyProperty Identifies the dependency property RequiredIsEmpty/>.
RequiredMessageProperty Identifies the dependency property RequiredMessage
RequiredProperty Identify the dependency property Required.
ResourceProviderProperty Identifies the dependency property ResourceProvider.
SpinButtonVisibleProperty Identify the dependency property SpinButtonVisible.
StepValueProperty Identifies the dependency property StepValue.
ValidationErrorMessageProperty Identifies the dependency property ValidationErrorMessage.
ValidationExpresionProperty Identifies the dependency property ValidationExpresion.
ValidationModeProperty Identifies the dependency property ValidationMode.
ValueMaskFormatProperty Identifies the dependency property ValueMaskFormat.
ValueProperty Identifies the dependency property Value.
WarningMessageProperty Identifies the dependency property WarningMessage.
WatermarkModeProperty Identifies the dependency property WatermarkMode.
WatermarkProperty Identify the dependency property Watermark.

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also