public class MaskedTextBox : TextBoxPublic Class MaskedTextBox
Inherits TextBoxtype MaskedTextBox =
class
inherit TextBox
end| MaskedTextBox | Initializes a new instance of the MaskedTextBox class |
| MaskedTextBox(MaskedTextProvider) | Constructs the MaskedTextBox with the specified MaskedTextProvider object. |
| AcceptsReturn |
Gets or sets a value that determines whether the TextBox allows and displays newline or return characters
(Inherited from TextBox) |
| AcceptsTab |
Gets or sets a value that determins whether the TextBox allows and displays tabs
(Inherited from TextBox) |
| ActualThemeVariant | (Inherited from StyledElement) |
| AsciiOnly | Gets or sets a value indicating if the masked text box is restricted to accept only ASCII characters. Default value is false. |
| Background |
Gets or sets the brush used to draw the control's background.
(Inherited from TemplatedControl) |
| BackgroundSizing |
Gets or sets how the control's background is drawn relative to the control's border.
(Inherited from TemplatedControl) |
| BorderBrush |
Gets or sets the brush used to draw the control's border.
(Inherited from TemplatedControl) |
| BorderThickness |
Gets or sets the thickness of the control's border.
(Inherited from TemplatedControl) |
| Bounds | (Inherited from Visual) |
| BypassFlowDirectionPolicies | (Inherited from Visual) |
| CanCopy |
Property for determining if the Copy command can be executed.
(Inherited from TextBox) |
| CanCut |
Property for determining if the Cut command can be executed.
(Inherited from TextBox) |
| CanPaste |
Property for determining if the Paste command can be executed.
(Inherited from TextBox) |
| CanRedo |
Gets a value that indicates whether the redo stack has an action that can be redone
(Inherited from TextBox) |
| CanUndo |
Gets a value that indicates whether the undo stack has an action that can be undone
(Inherited from TextBox) |
| CaretBlinkInterval |
Gets or sets the caret blink rate
(Inherited from TextBox) |
| CaretBrush |
Gets or sets a brush that is used for the text caret
(Inherited from TextBox) |
| CaretIndex |
Gets or sets the index of the text caret
(Inherited from TextBox) |
| Classes | (Inherited from StyledElement) |
| ClearSelectionOnLostFocus |
Gets or sets a value that determines whether the TextBox clears its selection after it loses focus.
(Inherited from TextBox) |
| Clip | (Inherited from Visual) |
| ClipToBounds | (Inherited from Visual) |
| ContextFlyout |
Gets or sets a context flyout to the control
(Inherited from Control) |
| ContextMenu |
Gets or sets a context menu to the control.
(Inherited from Control) |
| CornerRadius |
Gets or sets the radius of the border rounded corners.
(Inherited from TemplatedControl) |
| Culture | Gets or sets the culture information associated with the masked text box. |
| Cursor | (Inherited from InputElement) |
| DataContext | (Inherited from StyledElement) |
| DataTemplates |
Gets or sets the data templates for the control.
(Inherited from Control) |
| DesiredSize | (Inherited from Layoutable) |
| Effect | (Inherited from Visual) |
| FlowDirection | (Inherited from Visual) |
| Focusable | (Inherited from InputElement) |
| FocusAdorner |
Gets or sets the control's focus adorner.
(Inherited from Control) |
| FontFamily |
Gets or sets the font family used to draw the control's text.
(Inherited from TemplatedControl) |
| FontFeatures |
Gets or sets the font features turned on/off.
(Inherited from TemplatedControl) |
| FontSize |
Gets or sets the size of the control's text in points.
(Inherited from TemplatedControl) |
| FontStretch |
Gets or sets the font stretch used to draw the control's text.
(Inherited from TemplatedControl) |
| FontStyle |
Gets or sets the font style used to draw the control's text.
(Inherited from TemplatedControl) |
| FontWeight |
Gets or sets the font weight used to draw the control's text.
(Inherited from TemplatedControl) |
| Foreground |
Gets or sets the brush used to draw the control's text and other foreground elements.
(Inherited from TemplatedControl) |
| GestureRecognizers | (Inherited from InputElement) |
| HasMirrorTransform | (Inherited from Visual) |
| Height | (Inherited from Layoutable) |
| HidePromptOnLeave | Gets or sets a value indicating if the prompt character is hidden when the masked text box loses focus. |
| HorizontalAlignment | (Inherited from Layoutable) |
| HorizontalContentAlignment |
Gets or sets the horizontal alignment of the content within the control.
(Inherited from TextBox) |
| InheritanceParent | (Inherited from AvaloniaObject) |
| InnerLeftContent |
Gets or sets custom content that is positioned on the left side of the text layout box
(Inherited from TextBox) |
| InnerRightContent |
Gets or sets custom content that is positioned on the right side of the text layout box
(Inherited from TextBox) |
| IsArrangeValid | (Inherited from Layoutable) |
| IsEffectivelyEnabled | (Inherited from InputElement) |
| IsEffectivelyVisible | (Inherited from Visual) |
| IsEnabled | (Inherited from InputElement) |
| IsEnabledCore | (Inherited from InputElement) |
| IsFocused | (Inherited from InputElement) |
| IsHitTestVisible | (Inherited from InputElement) |
| IsInactiveSelectionHighlightEnabled |
Gets or sets a value that determines whether the TextBox shows a selection highlight when it is not focused.
(Inherited from TextBox) |
| IsInitialized | (Inherited from StyledElement) |
| IsKeyboardFocusWithin | (Inherited from InputElement) |
| IsLoaded |
Gets a value indicating whether the control is fully constructed in the visual tree
and both layout and render are complete.
(Inherited from Control) |
| IsMeasureValid | (Inherited from Layoutable) |
| IsPointerOver | (Inherited from InputElement) |
| IsReadOnly |
Gets or sets a value whether this TextBox is read-only
(Inherited from TextBox) |
| IsTabStop | (Inherited from InputElement) |
| IsUndoEnabled |
Property for determining whether undo/redo is enabled
(Inherited from TextBox) |
| IsVisible | (Inherited from Visual) |
| Item | (Inherited from AvaloniaObject) |
| Item | (Inherited from AvaloniaObject) |
| KeyBindings | (Inherited from InputElement) |
| LetterSpacing |
Gets or sets the spacing between characters
(Inherited from TextBox) |
| LineHeight |
Gets or sets the line height.
(Inherited from TextBox) |
| LogicalChildren | (Inherited from StyledElement) |
| Margin | (Inherited from Layoutable) |
| Mask | Gets or sets the mask to apply to the TextBox. |
| MaskCompleted | Specifies whether the test string required input positions, as specified by the mask, have all been assigned. |
| MaskFull | Specifies whether all inputs (required and optional) have been provided into the mask successfully. |
| MaskProvider | Gets the MaskTextProvider for the specified Mask. |
| MaxHeight | (Inherited from Layoutable) |
| MaxLength |
Gets or sets the maximum number of characters that the TextBox can accept.
This constraint only applies for manually entered (user-inputted) text.
(Inherited from TextBox) |
| MaxLines |
Gets or sets the maximum number of visible lines to size to.
(Inherited from TextBox) |
| MaxWidth | (Inherited from Layoutable) |
| MinHeight | (Inherited from Layoutable) |
| MinLines |
Gets or sets the minimum number of visible lines to size to.
(Inherited from TextBox) |
| MinWidth | (Inherited from Layoutable) |
| Name | (Inherited from StyledElement) |
| NewLine |
Gets or sets which characters are inserted when Enter is pressed. Default: NewLine (Inherited from TextBox) |
| Opacity | (Inherited from Visual) |
| OpacityMask | (Inherited from Visual) |
| Padding |
Gets or sets the padding placed between the border of the control and its content.
(Inherited from TemplatedControl) |
| Parent | (Inherited from StyledElement) |
| PasswordChar |
Gets or sets the Char that should be used for password masking
(Inherited from TextBox) |
| PromptChar | Gets or sets the character used to represent the absence of user input in MaskedTextBox. |
| PseudoClasses | (Inherited from StyledElement) |
| RenderTransform | (Inherited from Visual) |
| RenderTransformOrigin | (Inherited from Visual) |
| ResetOnPrompt | Gets or sets a value indicating if selected characters should be reset when the prompt character is pressed. |
| ResetOnSpace | Gets or sets a value indicating if selected characters should be reset when the space character is pressed. |
| Resources | (Inherited from StyledElement) |
| RevealPassword |
Gets or sets whether text masked by PasswordChar should be revealed
(Inherited from TextBox) |
| SelectedText |
Gets or sets the text selected in the TextBox
(Inherited from TextBox) |
| SelectionBrush |
Gets or sets a brush that is used to highlight selected text
(Inherited from TextBox) |
| SelectionEnd |
Gets or sets the end position of the text selected in the TextBox
(Inherited from TextBox) |
| SelectionForegroundBrush |
Gets or sets a brush that is used for the foreground of selected text
(Inherited from TextBox) |
| SelectionStart |
Gets or sets the starting position of the text selected in the TextBox
(Inherited from TextBox) |
| StyleKey | (Inherited from StyledElement) |
| StyleKeyOverride | (Overrides StyledElement.StyleKeyOverride) |
| Styles | (Inherited from StyledElement) |
| TabIndex | (Inherited from InputElement) |
| Tag |
Gets or sets a user-defined object attached to the control.
(Inherited from Control) |
| Template |
Gets or sets the template that defines the control's appearance.
(Inherited from TemplatedControl) |
| TemplatedParent | (Inherited from StyledElement) |
| Text |
Gets or sets the Text content of the TextBox
(Inherited from TextBox) |
| TextAlignment |
Gets or sets the TextAlignment of the TextBox
(Inherited from TextBox) |
| TextWrapping |
Gets or sets the TextWrapping of the TextBox
(Inherited from TextBox) |
| Theme | (Inherited from StyledElement) |
| Transitions | (Inherited from Animatable) |
| UndoLimit |
Gets or sets the maximum number of items that can reside in the Undo stack
(Inherited from TextBox) |
| UseFloatingWatermark |
Gets or sets a value indicating whether the Watermark will still be shown above the
Text even after a text value is set.
(Inherited from TextBox) |
| UseLayoutRounding | (Inherited from Layoutable) |
| VerticalAlignment | (Inherited from Layoutable) |
| VerticalContentAlignment |
Gets or sets the vertical alignment of the content within the control.
(Inherited from TextBox) |
| VisualChildren | (Inherited from Visual) |
| VisualRoot | (Inherited from Visual) |
| Watermark |
Gets or sets the placeholder or descriptive text that is displayed even if the Text
property is not yet set.
(Inherited from TextBox) |
| Width | (Inherited from Layoutable) |
| ZIndex | (Inherited from Visual) |
| AddHandler(RoutedEvent, Delegate, RoutingStrategies, Boolean) | (Inherited from Interactive) |
| AddHandler``1(RoutedEventUMP, EventHandlerUMP, RoutingStrategies, Boolean) | (Inherited from Interactive) |
| ApplyStyling | (Inherited from StyledElement) |
| ApplyTemplate | (Inherited from TemplatedControl) |
| Arrange(Rect) | (Inherited from Layoutable) |
| ArrangeCore(Rect) | (Inherited from Layoutable) |
| ArrangeOverride(Size) | (Inherited from Layoutable) |
| BeginInit | (Inherited from StyledElement) |
| Bind(AvaloniaProperty, IBinding) | (Inherited from AvaloniaObject) |
| Bind(AvaloniaProperty, IObservableObject, BindingPriority) | (Inherited from AvaloniaObject) |
| Bind``1(DirectPropertyBaseUMP, IObservableUMP) | (Inherited from AvaloniaObject) |
| Bind``1(DirectPropertyBaseUMP, IObservableBindingValueUMP) | (Inherited from AvaloniaObject) |
| Bind``1(DirectPropertyBaseUMP, IObservableObject) | (Inherited from AvaloniaObject) |
| Bind``1(StyledPropertyUMP, IObservableUMP, BindingPriority) | (Inherited from AvaloniaObject) |
| Bind``1(StyledPropertyUMP, IObservableBindingValueUMP, BindingPriority) | (Inherited from AvaloniaObject) |
| Bind``1(StyledPropertyUMP, IObservableObject, BindingPriority) | (Inherited from AvaloniaObject) |
| BuildEventRoute(RoutedEvent) | (Inherited from Interactive) |
| CheckAccess | (Inherited from AvaloniaObject) |
| Clear |
Clears the text in the TextBox
(Inherited from TextBox) |
| ClearSelection |
Clears the current selection, maintaining the CaretIndex (Inherited from TextBox) |
| ClearValue(AvaloniaProperty) | (Inherited from AvaloniaObject) |
| ClearValue``1(AvaloniaPropertyUMP) | (Inherited from AvaloniaObject) |
| ClearValue``1(DirectPropertyBaseUMP) | (Inherited from AvaloniaObject) |
| ClearValue``1(StyledPropertyUMP) | (Inherited from AvaloniaObject) |
| CoerceText(String) |
Coerces the current text.
(Overrides TextBoxCoerceText(String)) |
| CoerceValue(AvaloniaProperty) | (Inherited from AvaloniaObject) |
| Copy |
Copies the current text onto the clipboard
(Inherited from TextBox) |
| Cut |
Cuts the current text onto the clipboard
(Inherited from TextBox) |
| EndInit | (Inherited from StyledElement) |
| Equals(Object) | (Inherited from AvaloniaObject) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| Focus(NavigationMethod, KeyModifiers) | (Inherited from InputElement) |
| GetBaseValue``1(StyledPropertyUMP) | (Inherited from AvaloniaObject) |
| GetHashCode | (Inherited from AvaloniaObject) |
| GetTemplateFocusTarget |
Gets the element that receives the focus adorner.
(Inherited from TemplatedControl) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| GetValue(AvaloniaProperty) | (Inherited from AvaloniaObject) |
| GetValue``1(DirectPropertyBaseUMP) | (Inherited from AvaloniaObject) |
| GetValue``1(StyledPropertyUMP) | (Inherited from AvaloniaObject) |
| InitializeIfNeeded | (Inherited from StyledElement) |
| InvalidateArrange | (Inherited from Layoutable) |
| InvalidateMeasure | (Inherited from Layoutable) |
| InvalidateMirrorTransform | (Inherited from Visual) |
| InvalidateVisual | (Inherited from Visual) |
| IsAnimating(AvaloniaProperty) | (Inherited from AvaloniaObject) |
| IsSet(AvaloniaProperty) | (Inherited from AvaloniaObject) |
| LogicalChildrenCollectionChanged(Object, NotifyCollectionChangedEventArgs) | (Inherited from Visual) |
| Measure(Size) | (Inherited from Layoutable) |
| MeasureCore(Size) | (Inherited from Layoutable) |
| MeasureOverride(Size) | (Inherited from TextBox) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| OnAccessKey(RoutedEventArgs) | (Inherited from InputElement) |
| OnApplyTemplate(TemplateAppliedEventArgs) | (Inherited from TextBox) |
| OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs) | (Inherited from TemplatedControl) |
| OnAttachedToVisualTree(VisualTreeAttachmentEventArgs) | (Inherited from TextBox) |
| OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs) | (Inherited from Control) |
| OnCreateAutomationPeer | (Inherited from TextBox) |
| OnDataContextBeginUpdate | (Inherited from StyledElement) |
| OnDataContextChanged(EventArgs) | (Inherited from StyledElement) |
| OnDataContextEndUpdate | (Inherited from StyledElement) |
| OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs) | (Inherited from TemplatedControl) |
| OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs) | (Inherited from TextBox) |
| OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs) | (Inherited from Control) |
| OnGotFocus(GotFocusEventArgs) | (Overrides TextBoxOnGotFocus(GotFocusEventArgs)) |
| OnInitialized | (Inherited from StyledElement) |
| OnKeyDown(KeyEventArgs) | (Overrides TextBoxOnKeyDown(KeyEventArgs)) |
| OnKeyUp(KeyEventArgs) | (Inherited from Control) |
| OnLoaded(RoutedEventArgs) |
Invoked just before the Loaded event.
(Inherited from Control) |
| OnLostFocus(RoutedEventArgs) | (Overrides TextBoxOnLostFocus(RoutedEventArgs)) |
| OnMeasureInvalidated | (Inherited from Layoutable) |
| OnPointerCaptureLost(PointerCaptureLostEventArgs) | (Inherited from InputElement) |
| OnPointerEntered(PointerEventArgs) | (Inherited from InputElement) |
| OnPointerExited(PointerEventArgs) | (Inherited from InputElement) |
| OnPointerMoved(PointerEventArgs) | (Inherited from TextBox) |
| OnPointerPressed(PointerPressedEventArgs) | (Inherited from TextBox) |
| OnPointerReleased(PointerReleasedEventArgs) | (Inherited from TextBox) |
| OnPointerWheelChanged(PointerWheelEventArgs) | (Inherited from InputElement) |
| OnPropertyChanged(AvaloniaPropertyChangedEventArgs) | (Overrides TextBoxOnPropertyChanged(AvaloniaPropertyChangedEventArgs)) |
| OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs) | (Inherited from Animatable) |
| OnSizeChanged(SizeChangedEventArgs) |
Invoked just before the SizeChanged event.
(Inherited from Control) |
| OnTemplateChanged(AvaloniaPropertyChangedEventArgs) |
Called when the Template property changes.
(Inherited from TemplatedControl) |
| OnTextInput(TextInputEventArgs) | (Overrides TextBoxOnTextInput(TextInputEventArgs)) |
| OnUnloaded(RoutedEventArgs) |
Invoked just before the Unloaded event.
(Inherited from Control) |
| OnVisualParentChanged(Visual, Visual) | (Inherited from Layoutable) |
| Paste |
Pastes the current clipboard text content into the TextBox
(Inherited from TextBox) |
| RaiseEvent(RoutedEventArgs) | (Inherited from Interactive) |
| RaisePropertyChanged``1(DirectPropertyBaseUMP, UMP, UMP) | (Inherited from AvaloniaObject) |
| Redo |
Reapplies the first item on the redo stack
(Inherited from TextBox) |
| RemoveHandler(RoutedEvent, Delegate) | (Inherited from Interactive) |
| RemoveHandler``1(RoutedEventUMP, EventHandlerUMP) | (Inherited from Interactive) |
| Render(DrawingContext) | (Inherited from Visual) |
| ScrollToLine(Int32) |
Scroll the TextBox to the specified line index.
(Inherited from TextBox) |
| SelectAll |
Select all text in the TextBox
(Inherited from TextBox) |
| SetAndRaise``1(DirectPropertyBaseUMP, UMP, UMP) | (Inherited from AvaloniaObject) |
| SetCurrentValue(AvaloniaProperty, Object) | (Inherited from AvaloniaObject) |
| SetCurrentValue``1(StyledPropertyUMP, UMP) | (Inherited from AvaloniaObject) |
| SetValue(AvaloniaProperty, Object, BindingPriority) | (Inherited from AvaloniaObject) |
| SetValue``1(DirectPropertyBaseUMP, UMP) | (Inherited from AvaloniaObject) |
| SetValue``1(StyledPropertyUMP, UMP, BindingPriority) | (Inherited from AvaloniaObject) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| TryGetResource(Object, ThemeVariant, Object) | (Inherited from StyledElement) |
| Undo |
Undoes the first action in the undo stack
(Inherited from TextBox) |
| UpdateDataValidation(AvaloniaProperty, BindingValueType, Exception) | (Inherited from TextBox) |
| UpdateIsEffectivelyEnabled | (Inherited from InputElement) |
| UpdateLayout | (Inherited from Layoutable) |
| VerifyAccess | (Inherited from AvaloniaObject) |
| ActualThemeVariantChanged | (Inherited from StyledElement) |
| AttachedToLogicalTree | (Inherited from StyledElement) |
| AttachedToVisualTree | (Inherited from Visual) |
| ContextRequested |
Occurs when the user has completed a context input gesture, such as a right-click.
(Inherited from Control) |
| CopyingToClipboard |
Raised when content is being copied to the clipboard
(Inherited from TextBox) |
| CuttingToClipboard |
Raised when content is being cut to the clipboard
(Inherited from TextBox) |
| DataContextChanged | (Inherited from StyledElement) |
| DetachedFromLogicalTree | (Inherited from StyledElement) |
| DetachedFromVisualTree | (Inherited from Visual) |
| DoubleTapped | (Inherited from InputElement) |
| EffectiveViewportChanged | (Inherited from Layoutable) |
| GotFocus | (Inherited from InputElement) |
| Holding | (Inherited from InputElement) |
| Initialized | (Inherited from StyledElement) |
| KeyDown | (Inherited from InputElement) |
| KeyUp | (Inherited from InputElement) |
| LayoutUpdated | (Inherited from Layoutable) |
| Loaded |
Occurs when the control has been fully constructed in the visual tree and both
layout and render are complete.
(Inherited from Control) |
| LostFocus | (Inherited from InputElement) |
| PastingFromClipboard |
Raised when content is being pasted from the clipboard
(Inherited from TextBox) |
| PointerCaptureLost | (Inherited from InputElement) |
| PointerEntered | (Inherited from InputElement) |
| PointerExited | (Inherited from InputElement) |
| PointerMoved | (Inherited from InputElement) |
| PointerPressed | (Inherited from InputElement) |
| PointerReleased | (Inherited from InputElement) |
| PointerWheelChanged | (Inherited from InputElement) |
| PropertyChanged | (Inherited from AvaloniaObject) |
| ResourcesChanged | (Inherited from StyledElement) |
| SizeChanged |
Occurs when the bounds (actual size) of the control have changed.
(Inherited from Control) |
| Tapped | (Inherited from InputElement) |
| TemplateApplied |
Raised when the control's template is applied.
(Inherited from TemplatedControl) |
| TextChanged |
Occurs asynchronously after text changes and the new text is rendered.
(Inherited from TextBox) |
| TextChanging |
Occurs synchronously when text starts to change but before it is rendered.
(Inherited from TextBox) |
| TextInput | (Inherited from InputElement) |
| TextInputMethodClientRequested | (Inherited from InputElement) |
| Unloaded |
Occurs when the control is removed from the visual tree.
(Inherited from Control) |
| AsciiOnlyProperty | |
| CultureProperty | |
| HidePromptOnLeaveProperty | |
| MaskCompletedProperty | |
| MaskFullProperty | |
| MaskProperty | |
| PromptCharProperty | |
| ResetOnPromptProperty | |
| ResetOnSpaceProperty |
| BringIntoView |
Tries to bring the control into view.
(Defined by ControlExtensions) |
| BringIntoView(Rect) |
Tries to bring the control into view.
(Defined by ControlExtensions) |
| FindControlT(String) |
Finds the named control in the scope of the specified control.
(Defined by ControlExtensions) |
| FindDataTemplate(Object, IDataTemplate) |
Find a data template that matches a piece of data.
(Defined by DataTemplateExtensions) |
| GetControlT(String) |
Finds the named control in the scope of the specified control and throws if not found.
(Defined by ControlExtensions) |
| GetTemplateChildren | (Defined by TemplateExtensions) |