menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MaskedTextBox - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MaskedTextBox

    Inheritance
    System.Object
    MaskedTextBox
    SearchTextBox
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2007BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/SyncOrangeStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/ShinyRedStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/ShinyBlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(MaskedTextBox), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/Editors/Themes/Generic.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/TransparentStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2013, Type = typeof(MaskedTextBox), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Editors/Themes/Office2013Style.xaml")]
    [Obsolete("This control is obsolete. Use new SfMaskedEdit in Syncfusion.SfInput.WPF assembly instead.")]
    public class MaskedTextBox : TextBox, IDisposable

    Constructors

    MaskedTextBox()

    Declaration
    public MaskedTextBox()

    Fields

    ContentElementVisibilityProperty

    Declaration
    public static readonly DependencyProperty ContentElementVisibilityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    CornerRadiusProperty

    Declaration
    public static readonly DependencyProperty CornerRadiusProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    CultureProperty

    Declaration
    public static readonly DependencyProperty CultureProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    CurrencySymbolProperty

    Declaration
    public static readonly DependencyProperty CurrencySymbolProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DateSeparatorProperty

    Declaration
    public static readonly DependencyProperty DateSeparatorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DecimalSeparatorProperty

    Declaration
    public static readonly DependencyProperty DecimalSeparatorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    EnableTouchProperty

    Declaration
    public static readonly DependencyProperty EnableTouchProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    EnterToMoveNextProperty

    Declaration
    public static readonly DependencyProperty EnterToMoveNextProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FocusedBackgroundProperty

    Declaration
    public static readonly DependencyProperty FocusedBackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FocusedBorderBrushProperty

    Declaration
    public static readonly DependencyProperty FocusedBorderBrushProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FocusedForegroundProperty

    Declaration
    public static readonly DependencyProperty FocusedForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    GroupSeperatorEnabledProperty

    Using a DependencyProperty as the backing store for GroupSeperatorEnabled. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty GroupSeperatorEnabledProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    InvalidValueBehaviorProperty

    Declaration
    public static readonly DependencyProperty InvalidValueBehaviorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsCaretAnimationEnabledProperty

    Declaration
    public static readonly DependencyProperty IsCaretAnimationEnabledProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsNumericProperty

    Indicates numeric mode

    Declaration
    public static readonly DependencyProperty IsNumericProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsUndoEnabledProperty

    Declaration
    public static readonly DependencyProperty IsUndoEnabledProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MaskCompletedProperty

    Declaration
    public static readonly DependencyProperty MaskCompletedProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MaskedTextProperty

    Declaration
    public static readonly DependencyProperty MaskedTextProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MaskProperty

    Declaration
    public static readonly DependencyProperty MaskProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MaxCharLengthProperty

    Declaration
    public static readonly DependencyProperty MaxCharLengthProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MinLengthProperty

    Identifies MinLength dependency property

    Declaration
    public static readonly DependencyProperty MinLengthProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    NumberGroupSeparatorProperty

    Declaration
    public static readonly DependencyProperty NumberGroupSeparatorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    PromptCharProperty

    Declaration
    public static readonly DependencyProperty PromptCharProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ReadOnlyBackgroundProperty

    Declaration
    public static readonly DependencyProperty ReadOnlyBackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ReadOnlyProperty

    Declaration
    public static readonly DependencyProperty ReadOnlyProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectionForegroundProperty

    Declaration
    public static readonly DependencyProperty SelectionForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    StringValidationProperty

    Declaration
    public static readonly DependencyProperty StringValidationProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TextMaskFormatProperty

    Declaration
    public static readonly DependencyProperty TextMaskFormatProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TextSelectionOnFocusProperty

    Declaration
    public static readonly DependencyProperty TextSelectionOnFocusProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TimeSeparatorProperty

    Declaration
    public static readonly DependencyProperty TimeSeparatorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ValidationStringProperty

    Declaration
    public static readonly DependencyProperty ValidationStringProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ValueProperty

    Declaration
    public static readonly DependencyProperty ValueProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkBackgroundProperty

    Declaration
    public static readonly DependencyProperty WatermarkBackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkOpacityProperty

    Declaration
    public static readonly DependencyProperty WatermarkOpacityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkTemplateProperty

    Identifies the WaterMarkTemplate dependency property.

    Declaration
    public static DependencyProperty WatermarkTemplateProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkTextForegroundProperty

    Declaration
    public static readonly DependencyProperty WatermarkTextForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkTextIsVisibleProperty

    Declaration
    public static readonly DependencyProperty WatermarkTextIsVisibleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkTextModeProperty

    Declaration
    public static readonly DependencyProperty WatermarkTextModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkTextProperty

    Identifies the WaterMarkText dependency property.

    Declaration
    public static DependencyProperty WatermarkTextProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WatermarkVisibilityProperty

    Identifies the WaterMarkVisibility dependency property.

    Declaration
    public static DependencyProperty WatermarkVisibilityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    ContentElementVisibility

    Declaration
    public Visibility ContentElementVisibility { get; set; }
    Property Value
    Type
    System.Windows.Visibility

    copycommand

    Declaration
    public ICommand copycommand { get; }
    Property Value
    Type
    System.Windows.Input.ICommand

    CornerRadius

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public CornerRadius CornerRadius { get; set; }
    Property Value
    Type
    System.Windows.CornerRadius

    Culture

    Declaration
    public CultureInfo Culture { get; set; }
    Property Value
    Type
    System.Globalization.CultureInfo

    CurrencySymbol

    Declaration
    public string CurrencySymbol { get; set; }
    Property Value
    Type
    System.String

    cutcommand

    Declaration
    public ICommand cutcommand { get; }
    Property Value
    Type
    System.Windows.Input.ICommand

    DateSeparator

    Declaration
    public string DateSeparator { get; set; }
    Property Value
    Type
    System.String

    DecimalSeparator

    Declaration
    public string DecimalSeparator { get; set; }
    Property Value
    Type
    System.String

    EnableTouch

    Declaration
    public bool EnableTouch { get; set; }
    Property Value
    Type
    System.Boolean

    EnterToMoveNext

    Declaration
    public bool EnterToMoveNext { get; set; }
    Property Value
    Type
    System.Boolean

    FocusedBackground

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public Brush FocusedBackground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    FocusedBorderBrush

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public Brush FocusedBorderBrush { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    FocusedForeground

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public Brush FocusedForeground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    GroupSeperatorEnabled

    Declaration
    public bool GroupSeperatorEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    InvalidValueBehavior

    Declaration
    public InvalidInputBehavior InvalidValueBehavior { get; set; }
    Property Value
    Type
    InvalidInputBehavior

    IsCaretAnimationEnabled

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public bool IsCaretAnimationEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    IsNumeric

    Get or set numeric mode

    Declaration
    public bool IsNumeric { get; set; }
    Property Value
    Type
    System.Boolean

    IsUndoEnabled

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public bool IsUndoEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    Mask

    Declaration
    public string Mask { get; set; }
    Property Value
    Type
    System.String

    MaskCompleted

    Declaration
    public bool MaskCompleted { get; set; }
    Property Value
    Type
    System.Boolean

    MaskedText

    Declaration
    public string MaskedText { get; set; }
    Property Value
    Type
    System.String

    MaxCharLength

    Declaration
    [Obsolete("Use MaxLength property")]
    public int MaxCharLength { get; set; }
    Property Value
    Type
    System.Int32

    MinLength

    Declaration
    public int MinLength { get; set; }
    Property Value
    Type
    System.Int32

    NumberGroupSeparator

    Declaration
    public string NumberGroupSeparator { get; set; }
    Property Value
    Type
    System.String

    pastecommand

    Declaration
    public ICommand pastecommand { get; }
    Property Value
    Type
    System.Windows.Input.ICommand

    PromptChar

    Declaration
    public char PromptChar { get; set; }
    Property Value
    Type
    System.Char

    ReadOnly

    Declaration
    [Obsolete("Use IsReadOnly Property")]
    public bool ReadOnly { get; set; }
    Property Value
    Type
    System.Boolean

    ReadOnlyBackground

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public Brush ReadOnlyBackground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    SelectionForeground

    Declaration
    [Obsolete("Property will not help due to internal arhitecture changes")]
    public Brush SelectionForeground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    StringValidation

    Declaration
    public StringValidation StringValidation { get; set; }
    Property Value
    Type
    StringValidation

    TextMaskFormat

    Declaration
    public MaskFormat TextMaskFormat { get; set; }
    Property Value
    Type
    MaskFormat

    TextSelectionOnFocus

    Declaration
    public bool TextSelectionOnFocus { get; set; }
    Property Value
    Type
    System.Boolean

    TimeSeparator

    Declaration
    public string TimeSeparator { get; set; }
    Property Value
    Type
    System.String

    ValidationString

    Declaration
    public string ValidationString { get; set; }
    Property Value
    Type
    System.String

    Value

    Declaration
    public string Value { get; set; }
    Property Value
    Type
    System.String

    WatermarkBackground

    Declaration
    public Brush WatermarkBackground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    WatermarkOpacity

    Declaration
    public double WatermarkOpacity { get; set; }
    Property Value
    Type
    System.Double

    WatermarkTemplate

    Gets or sets the water mark template.

    Declaration
    public DataTemplate WatermarkTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The water mark template.

    WatermarkText

    Gets or sets the water mark text.

    Declaration
    public string WatermarkText { get; set; }
    Property Value
    Type Description
    System.String

    The water mark text.

    WatermarkTextForeground

    Declaration
    public Brush WatermarkTextForeground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    WatermarkTextIsVisible

    Declaration
    public bool WatermarkTextIsVisible { get; set; }
    Property Value
    Type
    System.Boolean

    WatermarkTextMode

    Declaration
    public WatermarkTextMode WatermarkTextMode { get; set; }
    Property Value
    Type
    WatermarkTextMode

    WatermarkVisibility

    Gets or sets the water mark visibility.

    Declaration
    public Visibility WatermarkVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    The water mark visibility.

    Methods

    Dispose()

    Dispose MaskedTextBox

    Declaration
    public void Dispose()

    OnApplyTemplate()

    When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

    Declaration
    public override void OnApplyTemplate()

    OnContextMenuOpening(ContextMenuEventArgs)

    Declaration
    protected override void OnContextMenuOpening(ContextMenuEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Controls.ContextMenuEventArgs e

    OnCurrencySymbolChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnCurrencySymbolChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnCurrencySymbolChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnCurrencySymbolChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnDateSeparatorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnDateSeparatorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnDateSeparatorChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnDateSeparatorChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnDecimalSeparatorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnDecimalSeparatorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnDecimalSeparatorChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnDecimalSeparatorChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnDrop(DragEventArgs)

    Declaration
    protected override void OnDrop(DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DragEventArgs e

    OnEnableTouchChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnEnableTouchChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnEnterToMoveNextChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnEnterToMoveNextChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnEnterToMoveNextChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnEnterToMoveNextChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnGotFocus(RoutedEventArgs)

    Called before System.Windows.UIElement.GotFocus event occurs.

    Declaration
    protected override void OnGotFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The data for the event.

    OnInvalidValueBehaviorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnInvalidValueBehaviorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnInvalidValueBehaviorChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnInvalidValueBehaviorChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnKeyDown(KeyEventArgs)

    Called when System.Windows.UIElement.KeyDown event occurs.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The data for the event.

    OnLostFocus(RoutedEventArgs)

    Called before System.Windows.UIElement.LostFocus event occurs.

    Declaration
    protected override void OnLostFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The data for the event.

    OnMaskChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnMaskChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMaskChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnMaskChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMaskCompletedPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnMaskCompletedPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMaskCompletedPropertyChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnMaskCompletedPropertyChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMinLengthChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnMinLengthChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMinLengthChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnMinLengthChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMouseLeave(MouseEventArgs)

    Called before System.Windows.UIElement.MouseLeave event occurs.

    Declaration
    protected override void OnMouseLeave(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The data for the event.

    OnMouseLeftButtonDown(MouseButtonEventArgs)

    Called before System.Windows.UIElement.MouseLeftButtonDown event occurs.

    Declaration
    protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The data for the event. The event data reports that the left mouse button was pressed.

    OnMouseLeftButtonUp(MouseButtonEventArgs)

    Called before System.Windows.UIElement.MouseLeftButtonUp event occurs.

    Declaration
    protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The data for the event. The event data reports that the left mouse button was released.

    OnNumberGroupSeparatorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnNumberGroupSeparatorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnNumberGroupSeparatorChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnNumberGroupSeparatorChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnPreviewKeyDown(KeyEventArgs)

    Declaration
    protected override void OnPreviewKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

    Declaration
    protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnPromptCharChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnPromptCharChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnPromptCharChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnPromptCharChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTestMaskFormatChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnTestMaskFormatChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTestMaskFormatChanged(DependencyPropertyChangedEventArgs)

    Raised when TestMaskFormat is changed

    Declaration
    protected void OnTestMaskFormatChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTextChanged(TextChangedEventArgs)

    Raised while TextChanged

    Declaration
    protected override void OnTextChanged(TextChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Controls.TextChangedEventArgs e

    OnTextInput(TextCompositionEventArgs)

    Called before the System.Windows.UIElement.TextInput event occurs.

    Declaration
    protected override void OnTextInput(TextCompositionEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TextCompositionEventArgs e

    Provides data about the event.

    OnTextSelectionOnFocusChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnTextSelectionOnFocusChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTextSelectionOnFocusChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnTextSelectionOnFocusChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTimeSeparatorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnTimeSeparatorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTimeSeparatorChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnTimeSeparatorChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnValidationStringChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnValidationStringChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnValidationStringChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnValidationStringChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnValueChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnValueChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnValueChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWaterMarkTemplateChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when [water mark template changed].

    Declaration
    public static void OnWaterMarkTemplateChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    The obj.

    System.Windows.DependencyPropertyChangedEventArgs args

    The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data.

    OnWaterMarkTemplateChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnWaterMarkTemplateChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWaterMarkTextChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnWaterMarkTextChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWaterMarkTextChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnWaterMarkTextChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWatermarkTextIsVisibleChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnWatermarkTextIsVisibleChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWatermarkTextIsVisibleChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnWatermarkTextIsVisibleChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWatermarkTextModeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnWatermarkTextModeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnWatermarkTextModeChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnWatermarkTextModeChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    Events

    CurrencySymbolChanged

    Event than is raised after the CurrencySymbol property has changed.

    Declaration
    public event PropertyChangedCallback CurrencySymbolChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    DateSeparatorChanged

    Event than is raised after the DateSeparator property has changed.

    Declaration
    public event PropertyChangedCallback DateSeparatorChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    DecimalSeparatorChanged

    Event than is raised after the DecimalSeparator property has changed.

    Declaration
    public event PropertyChangedCallback DecimalSeparatorChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    EnterToMoveNextChanged

    Event that is raised when EnterToMoveNext property is changed.

    Declaration
    public event PropertyChangedCallback EnterToMoveNextChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    InvalidValueBehaviorChanged

    Event than is raised after the InvalidValueBehavior property has changed.

    Declaration
    [Obsolete("Event will not help due to internal arhitecture changes")]
    public event PropertyChangedCallback InvalidValueBehaviorChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    MaskChanged

    Event than is raised after the Mask property has changed.

    Declaration
    public event PropertyChangedCallback MaskChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    MaskCompletedChanged

    Declaration
    public event PropertyChangedCallback MaskCompletedChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    MinLengthChanged

    Declaration
    public event PropertyChangedCallback MinLengthChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    NumberGroupSeparatorChanged

    Event than is raised after the NumberGroupSeparator property has changed.

    Declaration
    public event PropertyChangedCallback NumberGroupSeparatorChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    PromptCharChanged

    Event than is raised after the PromptChar property has changed.

    Declaration
    public event PropertyChangedCallback PromptCharChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    StringValidationCompleted

    Occurs when MaskedTextBox has finished validating the current value using the ValidatingString property. NOTE: event occurs only when ValidatingString is not empty.

    Declaration
    public event StringValidationCompletedEventHandler StringValidationCompleted
    Event Type
    Type
    StringValidationCompletedEventHandler

    TextSelectionOnFocusChanged

    Occurs when [text selection on focus changed].

    Declaration
    public event PropertyChangedCallback TextSelectionOnFocusChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    TimeSeparatorChanged

    Event than is raised after the TimeSeparator property has changed.

    Declaration
    public event PropertyChangedCallback TimeSeparatorChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    Validated

    Occurs when the control is finished validating.

    Declaration
    public event EventHandler Validated
    Event Type
    Type
    System.EventHandler

    Validating

    Occurs when the control is validating.

    Declaration
    public event CancelEventHandler Validating
    Event Type
    Type
    System.ComponentModel.CancelEventHandler

    ValidationStringChanged

    Event than is raised after the ValidationString property has changed.

    Declaration
    public event PropertyChangedCallback ValidationStringChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    ValueChanged

    Declaration
    public event PropertyChangedCallback ValueChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    WatermarkTemplateChanged

    Declaration
    public event PropertyChangedCallback WatermarkTemplateChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    WatermarkTextChanged

    Declaration
    public event PropertyChangedCallback WatermarkTextChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    WatermarkTextIsVisibleChanged

    Event that is raised when WatermarkTextIsVisible property is changed.

    Declaration
    public event PropertyChangedCallback WatermarkTextIsVisibleChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    WatermarkTextModeChanged

    Event that is raised when WatermarkTextMode property is changed.

    Declaration
    public event PropertyChangedCallback WatermarkTextModeChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    Explicit Interface Implementations

    IDisposable.Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    void IDisposable.Dispose()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved