C
C#7d ago
Dyda

✅ FluentAvaloniaUI ComboBox

Hi, I have an issue with the ItemsSource of a ComboBox in FluentAvaloniaUI. Although the binding appears correct in the developer tools, it remains null after the view loads.
No description
No description
3 Replies
FusedQyou
FusedQyou7d ago
Show the view model Wtf is that name, AvalivableOptions? Typo? You might want to use Rider here because I don't think VS really helps with the syntax so you probably didn't name this correctly
Mango
Mango6d ago
Set the DataContext in your DataTemplate. Your ComboBox should already be inheriting the same DataContext as Grid do this #Grid thing seems useless
Dyda
DydaOP6d ago
I messed up. It was different DataContext and it was a problem

Did you find this page helpful?