C
C#9mo ago
Dongle

❔ WinUI MVVM: Dealing with enums

How do you guys bind enums with the ComboBox control in WinUI?
10 Replies
nohopestage
nohopestage9mo ago
GitHub
Styles/Styles/MainWindow.xaml at master · nohopestage/Styles
DynamicTabControl Demo. Contribute to nohopestage/Styles development by creating an account on GitHub.
Dongle
Dongle9mo ago
Oh you are using runtime bindings
nohopestage
nohopestage9mo ago
Don't really know what those are, but I guess so
Dongle
Dongle9mo ago
{Binding} is runtime, {x:Bind} is compile-time
nohopestage
nohopestage9mo ago
Ah, in WPF there is only {Binding} You could try {x:Bind} Let me know if it works for you
Dongle
Dongle9mo ago
x:Bind has quite different semantics and so ElementName doesn't work there
nohopestage
nohopestage9mo ago
What's that for?
Dongle
Dongle9mo ago
wdym
nohopestage
nohopestage9mo ago
There's no ElementName in the xaml I linked
Accord
Accord9mo 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.