Class
RadMaskedInputBase

Base class for all masked-input controls like RadMaskedTextInput, RadMaskedDateTimeInput, RadMaskedNumericInput etc.

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public abstract class RadMaskedInputBase : RadControl

Inheritance: objectRadControlRadMaskedInputBase

Derived Classes: RadMaskedDateTimeInputRadMaskedIPInputRadMaskedNumericInputRadMaskedRegexInputRadMaskedTextInputRadMaskedTimeSpanInput

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.OnCreateAutomationPeer()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnTemplateApplied()RadControl.ApplyTemplateCore()RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadMaskedInputBase()

Initializes a new instance of the RadMaskedInputBase class.

Declaration

cs-api-definition
public RadMaskedInputBase()

Remarks

See the RadMaskedInputBase class for the inherited members.

Fields

AllowNullValueProperty

Identifies the AllowNullValue dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowNullValueProperty

Field Value

DependencyProperty

AllowPromptAsInputProperty

Identifies the AllowPromptAsInput dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowPromptAsInputProperty

Field Value

DependencyProperty

CultureProperty

Identifies the Culture dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CultureProperty

Field Value

DependencyProperty

DescriptionProperty

Identifies the Description dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DescriptionProperty

Field Value

DependencyProperty

EmptyTextProperty

Identifies the EmptyText dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyTextProperty

Field Value

DependencyProperty

HeaderProperty

Identifies the Header dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderTemplateProperty

Field Value

DependencyProperty

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

MaskProperty

Identifies the Mask dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaskProperty

Field Value

DependencyProperty

PromptCharProperty

Identifies the PromptChar dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PromptCharProperty

Field Value

DependencyProperty

TextProperty

Identifies the Text dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Properties

AllowNullValue

Gets or sets a value indicating whether the null value is accepted. When AllowNullValue is true the Value may be set to null programatically or by pressing the Clear button.

Declaration

cs-api-definition
public bool AllowNullValue { get; set; }

Property Value

bool

AllowPromptAsInput

Gets or sets a value indicating whether the prompt character should be treated as a valid input character or not.

Declaration

cs-api-definition
public bool AllowPromptAsInput { get; set; }

Property Value

bool

Description

Gets or sets content that is shown below the control.

Declaration

cs-api-definition
public object Description { get; set; }

Property Value

object

EmptyText

Gets or sets a value indicating the text shown in the control when no Text / Value is provided.

Declaration

cs-api-definition
public string EmptyText { get; set; }

Property Value

string

Header

Gets or sets the content for the control's header.

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

HeaderTemplate

Gets or sets the DataTemplate used to display the content of the control's header.

Declaration

cs-api-definition
public DataTemplate HeaderTemplate { get; set; }

Property Value

DataTemplate

IsReadOnly

Gets or sets the value that determines if the user can change the text in the control.

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

Mask

Gets or sets the mask string of the control. The Mask property is a string of characters that constrain user input. The Mask property may contain literals and special mask characters. The type of the masked control determines how the mask characters are interpreted.

Declaration

cs-api-definition
public string Mask { get; set; }

Property Value

string

Text

Gets the text of the control.

Declaration

cs-api-definition
public string Text { get; }

Property Value

string

Methods

ChangeVisualState()

Changes the visual state of the control using transitions.

Declaration

cs-api-definition
protected virtual void ChangeVisualState()

ChangeVisualState(bool)

Updates the visual state of the control.

Declaration

cs-api-definition
protected virtual void ChangeVisualState(bool useTransitions)

Parameters

useTransitions

bool

Indicates whether transitions should be used.

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

Declaration

cs-api-definition
protected override void OnApplyTemplate()

Overrides RadControl.OnApplyTemplate()

OnGotFocus(RoutedEventArgs)

Called before the GotFocus event occurs.

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

Event data for the event.

OnLostFocus(RoutedEventArgs)

Called before the LostFocus event occurs.

Declaration

cs-api-definition
protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

Event data for the event.

OnPointerEntered(PointerRoutedEventArgs)

Called before the PointerEntered event occurs.

Declaration

cs-api-definition
protected override void OnPointerEntered(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

Event data for the event.

OnPointerExited(PointerRoutedEventArgs)

Called before the PointerExited event occurs.

Declaration

cs-api-definition
protected override void OnPointerExited(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

Event data for the event.

OnPreviewKeyDown(KeyRoutedEventArgs)

Called before the PreviewKeyDown event occurs. Handled because CharacterReceived does not fire in WinUI Desktop. https://github.com/microsoft/microsoft-ui-xaml/issues/4256 Remove code once the issue is fixed.

Declaration

cs-api-definition
protected override void OnPreviewKeyDown(KeyRoutedEventArgs e)

Parameters

e

KeyRoutedEventArgs

OnValueChanged(EventArgs)

Fires the ValueChanged event

Declaration

cs-api-definition
protected virtual void OnValueChanged(EventArgs e)

Parameters

e

EventArgs

OnValueChanging(ValueChangingEventArgs)

Fires the ValueChanging event

Declaration

cs-api-definition
protected virtual void OnValueChanging(ValueChangingEventArgs e)

Parameters

e

ValueChangingEventArgs

Events

ContextMenuOpening

Occurs when the TextBox Contextmenu is opening.

Declaration

cs-api-definition
public event ContextMenuOpeningEventHandler ContextMenuOpening

Event Value

ContextMenuOpeningEventHandler

ValueChanged

An event that is raised when the Value of the control has changed.

Declaration

cs-api-definition
public event EventHandler ValueChanged

Event Value

EventHandler

ValueChanging

An event that is raised when the Value property is about to change. You can use this event and its event args to interfere with the process of updating the value.

Declaration

cs-api-definition
public event EventHandler<ValueChangingEventArgs> ValueChanging

Event Value

EventHandler<ValueChangingEventArgs>