Skip to content

Application crash when using the x:Bind in ComboBox #10507

@sudharsan-narayanan

Description

@sudharsan-narayanan

Describe the bug

In ComboBox, SelectedItem property is binded with x:bind and the combo box is editable. Now, user tried to enter value manually and press enter. Application gets crashed.

Note: If we use Binding the control works fine.

MSControlTest.zip

Steps to reproduce the bug

  1. Run the sample.
  2. Edit the combo box and enter the non-listed item.
  3. Now, press enter key.

Application crashed with Unhandled exception.

Expected behavior

It should work fine with all type of binding.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7.1: 1.7.250401001

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions