CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.9k stars 1.37k forks source link

NumberBox should only accept numbers and '-' or '.' when AcceptsExpression=False #4932

Closed ArchieCoder closed 1 year ago

ArchieCoder commented 1 year ago

Describe the bug

Right now, I can type "bug" in this control. This feels wrong. The Telerik version behaves correctly.

Regression

No response

Reproducible in sample app?

Steps to reproduce

1- Open the WinUI 2 or WinUI 3 Gallery
2- Search for NumberBox
3- Type "Bug" in any of these NumberBox

Expected behavior

It should be impossible to type letters

Screenshots

bug

Windows Build Number

Other Windows Build number

No response

App minimum and target SDK version

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.7.2

Device form factor

Desktop

Nuget packages

7.1.3

Additional context

No response

Help us help you

No.

ghost commented 1 year ago

Hello ArchieCoder, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

michael-hawker commented 1 year ago

@ArchieCoder NumberBox isn't part of the Toolkit, you should file this at https://github.com/Microsoft/microsoft-ui-xaml