-
Windows Terminal version1.17.1023 Windows build number10.0.22000.1761] Other SoftwareSoftware:Visual stuidio 2022 Steps to reproduceI am using visual studio 2022 to do new development on window terminal, but I encountered a problem that I don't know how to explain, so I had to seek an answer here,The steps are as follows: Doing whatI tried to add a new combobox on the profile_base.xaml and manually set the combobox's SelectedItem and ItemsSource Here's the problem:For example, the last time profile opened, the combobox itemsource has 7 values and the user choosed item6, the combobox display curr value is item6; What should I do to achieve the results I want?I don't have a deep understanding of the content of conbobox, so I hope you can give me some answers, thanks Expected BehaviorWhen I update ItemsSource, the display keeps the last value Actual BehaviorWhen I set SelectedItem manually, the display is empty |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Do you have a diff I could take a look at/? That might be the easiest way to investigate. Kinda just sounds like a WinUI bug to be totally honest, but a diff would help me validate locally that it's not something unique to the Terminal's codebase 😄 |
Beta Was this translation helpful? Give feedback.
-
Setting of combobox when opening a file for the first time (it showed it was right)
Setting of combobox when opening a file for the second time (it showed it was wrong)
|
Beta Was this translation helpful? Give feedback.
-
It looks like a ComboBox might not be the right kind of UI control to handle this case. I wonder if there is a different control that will support this case?
This is correct :) |
Beta Was this translation helpful? Give feedback.
It looks like a ComboBox might not be the right kind of UI control to handle this case. I wonder if there is a different control that will support this case?
This is correct :)