WinUI | ComponentOne
C1.WinUI.Input Assembly / C1.WinUI.Input Namespace / C1MaskedTextBox Class / MaskedTextChanged Event
In This Topic
    MaskedTextChanged Event
    In This Topic
    Occurs when consistent content that conforms to the Mask changes in the text box.
    Syntax
    public event MaskedTextChangedEventHandler MaskedTextChanged
    Event Data

    The event handler receives an argument of type MaskedTextChangedEventArgs containing data related to this event. The following MaskedTextChangedEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets a new text.  
    Gets an old text.  
    Remarks
    Just after the Text property has beed changed via user input or code, the C1MaskedTextBox updates the text again in order to make it consistent with the Mask. As a result, the TextChanged event can be triggered twice on each user input. In contrast to this, the MaskedTextChanged is triggered only when Text is updated with a value that conforms to the Mask.
    See Also