Combobox SelectedValue = null DisplayMember not match #21080
Unanswered
sbeduc163com
asked this question in
Q&A
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When the initial value of SelectedValue is null, the combobox does not have any option selected
To Reproduce
[ObservableProperty]
public List _comboboxItmes = new List()
{
new (){Id = null, Name = "All"},
new (){Id = 1, Name = "OPTION1"},
new (){Id = 2, Name = "OPTION2"}
};
[ObservableProperty]
private int? _comboboxSelectedValue = null;
Expected behavior
No response
Avalonia version
11.3.12
OS
Windows
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions