Skip to content

[Feature] TextBoxRegex should use the BeforeTextChanging eventΒ #3628

@jp-weber

Description

@jp-weber

Currently, the characters are checked for validity after they have been entered and set. Therefore, there are various events that currently have to be used to validate the entries for the various modes and to delete them if necessary.
The problem that arises here, especially with the ValidationMode Dynamic, is that non-valid entries are set and then deleted again.

Describe the problem this feature would solve

With the use of the BeforeTextChanging event, the values of the input are validated before the input is set and, with the ValidationMode dynamic, these are discarded if the input is not valid.

With this change, you could remove checks on the get and setters that catch invalid queries that would currently have been removed only after the first set.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions