Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception is thrown when writing more characters than the available in TextBox #19591

Open
ADD-Noureddine-Maachi opened this issue Feb 25, 2025 · 0 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@ADD-Noureddine-Maachi
Copy link

ADD-Noureddine-Maachi commented Feb 25, 2025

Current behavior

In Skia WPF, when writing more characters than the specified in the MaxLength property from the TextBox throws an exception of type ArgumentOutOfRangeException.

Expected behavior

Exception should not be thrown when trying to write more characters than the allowed in the TextBox.

How to reproduce it (as minimally and precisely as possible)

  1. Open the attached solution and compile it.
  2. Execute it Desktop head.
  3. Check 'Common Language Runtime Exceptions' inside 'Exception Settings' to be able to see the exception.
  4. Write more than 10 characters in the TextBox.

Workaround

No known workaround.

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

NuGet package(s): Uno.WinUI
NuGet package version(s): Uno.WinUI 5.5.94

Affected platforms

Skia (WPF)

IDE

Visual Studio 2022

IDE version

17.13.0

Relevant plugins

No response

Anything else we need to know?

TextBoxMaxLength.zip

@ADD-Noureddine-Maachi ADD-Noureddine-Maachi added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

1 participant