Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.Controls Assembly / Xceed.Wpf.Controls Namespace / MaskedTextBox Class / AllowPromptAsInput Property


In This Topic
    AllowPromptAsInput Property
    In This Topic
    Gets or sets a value indicating if the prompt character should be considered as a valid input character.
    Syntax
    'Declaration
     
    Public Property AllowPromptAsInput As Boolean
    'Usage
     
    Dim instance As MaskedTextBox
    Dim value As Boolean
     
    instance.AllowPromptAsInput = value
     
    value = instance.AllowPromptAsInput
    public bool AllowPromptAsInput {get; set;}

    Property Value

    true if the prompt char should be considered as a valid input character; false, otherwise. By default, true.

    Remarks

    ResetOnPrompt takes precedence over the AllowPromptAsInput property:

    ResetOnPrompt value AllowPromptAsInput value Behavior
    true true The prompt character can be entered and it causes the current mask position to be reset.
    true false The prompt character can be entered and it causes the current mask position to be reset.
    false true

    The prompt character is processed as a standard input character.

    false false The prompt character is not a valid input character.

    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also