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

ComboBox selected values does not update properly when changing the DataContext at Runtime #10101

Open
Gokul-Subramani opened this issue Oct 24, 2024 · 0 comments
Labels
area-ComboBox bug Something isn't working

Comments

@Gokul-Subramani
Copy link

Describe the bug

When changing the DataContext of the ComboBox at runtime, its selected values do not update properly. I have provided bindings for the SelectedIndex and ItemsSource properties, but when the DataContext is changed, the ComboBox values still do not update correctly.

Sample: MSComboBox.zip

Steps to reproduce the bug

  1. Run the Sample.
  2. Click on "Reset DataContext" button.

Expected behavior

The Combo Box value should be updated based on selected index.

Screenshots

MSComboBox.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

No response

Additional context

No response

@Gokul-Subramani Gokul-Subramani added the bug Something isn't working label Oct 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 24, 2024
@karkarl karkarl added area-ComboBox and removed needs-triage Issue needs to be triaged by the area owners labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ComboBox bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants