Skip to content

TokenizingTextBox Text property cannot be set manually from code behind in Release mode #4749

@Dieveral

Description

@Dieveral

Describe the bug

In Release mode TokenizingTextBox Text property cannot be set from code behind or with x:Bind. In Debug mode everything works as expected.

Regression

No response

Reproducible in sample app?

  • This bug can be reproduced in the sample app.

Steps to reproduce

Link to sample app:
https://github.com/Dieveral/TokenizingTextBox_TextBug

Steps:
1. Start application in Debug mood
2. Write text in field
3. Leave field without transforming text to TokenItem
4. Press 'Clear' button.
Text disappears.
5. Exit application
6. Start application in Release mood
7. Repeat steps 2-4
Text remains.

Expected behavior

You can change Text property of TokenizingTextBox from code behind and with binding system in Release mood, as in Debug mood.
In sample app: Text must disappear after pressing 'Clear' button in Release mood.

Screenshots

TokenizingTextBox
TokenizingTextBox_BackEnd

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

Windows 10 21H2 (Build 19044.1889)

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

2019

Visual Studio Build Number

16.11.17

Device form factor

Desktop

Nuget packages

Microsoft.NETCore.UniversalWindowsPlatform v6.2.12
Microsoft.Toolkit.Uwp.UI.Controls v7.1.12

Additional context

No response

Help us help you

No.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions