C
C#14mo ago
Dongle

❔ WinUI MVVM: Dealing with enums

How do you guys bind enums with the ComboBox control in WinUI?
10 Replies
nohopestage
nohopestage14mo ago
GitHub
Styles/Styles/MainWindow.xaml at master · nohopestage/Styles
DynamicTabControl Demo. Contribute to nohopestage/Styles development by creating an account on GitHub.
Dongle
DongleOP14mo ago
Oh you are using runtime bindings
nohopestage
nohopestage14mo ago
Don't really know what those are, but I guess so
Dongle
DongleOP14mo ago
{Binding} is runtime, {x:Bind} is compile-time
nohopestage
nohopestage14mo ago
Ah, in WPF there is only {Binding} You could try {x:Bind} Let me know if it works for you
Dongle
DongleOP14mo ago
x:Bind has quite different semantics and so ElementName doesn't work there
nohopestage
nohopestage14mo ago
What's that for?
Dongle
DongleOP14mo ago
wdym
nohopestage
nohopestage14mo ago
There's no ElementName in the xaml I linked
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server