Skip to content

TokenizingTextBox crashes the app in CommunityToolkit.WinUI #4772

Open
@lunelake

Description

@lunelake

Describe the bug

Having an TokenizingTextBox in WinUI crashes the app. The same code works well in UWP.

<Grid>
    <controls:TokenizingTextBox />
</StackPanel>

designme_cKfgF05iK0yAw-5qW7Uzmg

Regression

No response

Reproducible in sample app?

  • This bug can be reproduced in the sample app.

Steps to reproduce

1. Create a WinUI3 project
2. Add the snippet from the bug description
3. Run the app

Expected behavior

The app will continue running and show the items from TokenizingTextBox as with a normal one would.

Screenshots

No response

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.3.3

Device form factor

Desktop

Nuget packages

  • CommunityToolkit.WinUI.UI : 7.1.2
  • CommunityToolkit.WinUI.UI.Controls : 7.1.2
  • CommunityToolkit.WinUI.UI.Controls.Input : 7.1.2
  • Microsoft.WindowsAppSDK : 1.1.3
  • Microsoft.Windows.SDK.BuildTools : 10.0.22000.194

Additional context

App4.zip

Help us help you

Yes, but only if others can assist.

Metadata

Metadata

Assignees

Labels

WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.bug 🐛An unexpected issue that highlights incorrect behaviorcontrols 🎛️

Type

No type

Projects

  • Status

    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions