ClassRadMaskedInputBase
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:
public abstract class RadMaskedInputBase : RadControl
Inheritance: objectRadControlRadMaskedInputBase
Derived Classes:
Inherited Members
Constructors
RadMaskedInputBase()
Initializes a new instance of the RadMaskedInputBase class.
Declaration
public RadMaskedInputBase()
Remarks
See the RadMaskedInputBase class for the inherited members.
Fields
AllowNullValueProperty
Identifies the AllowNullValue dependency property.
Declaration
public static readonly DependencyProperty AllowNullValueProperty
Field Value
DependencyProperty
AllowPromptAsInputProperty
Identifies the AllowPromptAsInput dependency property.
Declaration
public static readonly DependencyProperty AllowPromptAsInputProperty
Field Value
DependencyProperty
CultureProperty
Identifies the Culture dependency property.
Declaration
public static readonly DependencyProperty CultureProperty
Field Value
DependencyProperty
DescriptionProperty
Identifies the Description dependency property.
Declaration
public static readonly DependencyProperty DescriptionProperty
Field Value
DependencyProperty
EmptyTextProperty
Identifies the EmptyText dependency property.
Declaration
public static readonly DependencyProperty EmptyTextProperty
Field Value
DependencyProperty
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
DependencyProperty
HeaderTemplateProperty
Identifies the HeaderTemplate dependency property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
MaskProperty
Identifies the Mask dependency property.
Declaration
public static readonly DependencyProperty MaskProperty
Field Value
DependencyProperty
PromptCharProperty
Identifies the PromptChar dependency property.
Declaration
public static readonly DependencyProperty PromptCharProperty
Field Value
DependencyProperty
TextProperty
Identifies the Text dependency property.
Declaration
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.
AllowPromptAsInput
Gets or sets a value indicating whether the prompt character should be treated as a valid input character or not.
Description
Gets or sets content that is shown below the control.
EmptyText
Gets or sets a value indicating the text shown in the control when no Text / Value is provided.
Header
Gets or sets the content for the control's header.
HeaderTemplate
Gets or sets the DataTemplate used to display the content of the control's header.
Declaration
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.
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.
Methods
ChangeVisualState()
Changes the visual state of the control using transitions.
Declaration
protected virtual void ChangeVisualState()
ChangeVisualState(bool)
Updates the visual state of the control.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
useTransitions
Indicates whether transitions should be used.
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
Declaration
protected override void OnApplyTemplate()
Overrides
OnGotFocus(RoutedEventArgs)
Called before the GotFocus event occurs.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
Event data for the event.
OnLostFocus(RoutedEventArgs)
Called before the LostFocus event occurs.
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
Event data for the event.
OnPointerEntered(PointerRoutedEventArgs)
Called before the PointerEntered event occurs.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
Event data for the event.
OnPointerExited(PointerRoutedEventArgs)
Called before the PointerExited event occurs.
Declaration
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
protected override void OnPreviewKeyDown(KeyRoutedEventArgs e)
Parameters
e
KeyRoutedEventArgs
OnValueChanged(EventArgs)
Fires the ValueChanged event
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
e
OnValueChanging(ValueChangingEventArgs)
Fires the ValueChanging event
Declaration
protected virtual void OnValueChanging(ValueChangingEventArgs e)
Parameters
e
Events
ContextMenuOpening
Occurs when the TextBox Contextmenu is opening.
Declaration
public event ContextMenuOpeningEventHandler ContextMenuOpening
Event Value
ContextMenuOpeningEventHandler
ValueChanged
An event that is raised when the Value of the control has changed.
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
public event EventHandler<ValueChangingEventArgs> ValueChanging
Event Value