TextBoxExtensions Class

Definition

public static class TextBoxExtensions
type TextBoxExtensions = class
Public Class TextBoxExtensions
Inheritance
TextBoxExtensions

Fields

CustomMaskProperty

Represents the custom mask that the user can create to add his own variable characters based on regex expression

IsValidProperty

Identifies the IsValid attached dependency property.

MaskPlaceholderProperty

Represents the mask place holder which represents the variable character that the user can edit in the textbox

MaskProperty

Represents a mask/format for the textbox that the user must follow

RegexProperty

Identifies the Regex attached dependency property.

SurfaceDialOptionsProperty

The SurfaceDialOptions instance containing properties to configure the Surface Dial support for a Windows.UI.Xaml.Controls.TextBox.

ValidationModeProperty

Identifies the ValidationMode attached dependency property.

ValidationTypeProperty

Identifies the ValidationType attached dependency property.

Properties

Controller

Gets or sets the controller for the Surface Dial. The Windows.UI.Input.RadialController can be set from your app logic in case you use Surface Dial in other custom cases than on a Windows.UI.Xaml.Controls.TextBox. This helper class will do everything for you, but if you want to control the Menu Items and/or wish to use the same Surface Dial instance This is the property for the static controller so you can access it if needed.

IsSurfaceDialOptionsSupported

Gets a value indicating whether this attached proeprty is supported.

Attached Properties

CustomMask
IsValid
Mask
MaskPlaceholder
Regex
SurfaceDialOptions
ValidationMode
ValidationType

Methods

GetCustomMask(TextBox)

Gets CustomMask value

GetIsValid(TextBox)

Gets the value of the TextBoxRegex.IsValid XAML attached property from the specified TextBox.

GetMask(TextBox)

Gets mask value

GetMaskPlaceholder(TextBox)

Gets placeholder value

GetRegex(TextBox)

Gets the value of the TextBoxRegex.Regex XAML attached property from the specified TextBox.

GetSurfaceDialOptions(TextBox)

Gets the value for SurfaceDialOptionsProperty.

GetValidationMode(TextBox)

Gets the value of the TextBoxRegex.ValidationMode XAML attached property from the specified TextBox.

GetValidationType(TextBox)

Gets the value of the TextBoxRegex.ValidationType XAML attached property from the specified TextBox.

SetCustomMask(TextBox, String)

Sets CustomMask property which represents the custom mask that the user can create to add his own variable characters based on certain regex expression

SetIsValid(TextBox, Boolean)

Sets the value of the TextBoxRegex.IsValid XAML attached property for a target TextBox.

SetMask(TextBox, String)

Sets textbox mask property which represents mask/format for the textbox that the user must follow

SetMaskPlaceholder(TextBox, String)

Sets placeholder property which represents the variable character that the user can edit in the textbox

SetRegex(TextBox, String)

Sets the value of the TextBoxRegex.Regex XAML attached property for a target TextBox.

SetSurfaceDialOptions(TextBox, SurfaceDialOptions)

Sets the value for SurfaceDialOptionsProperty.

SetValidationMode(TextBox, TextBoxExtensions+ValidationMode)

Sets the value of the TextBoxRegex.ValidationMode XAML attached property for a target TextBox.

SetValidationType(TextBox, TextBoxExtensions+ValidationType)

Sets the value of the TextBoxRegex.ValidationType XAML attached property for a target TextBox.

Applies to