Replies: 1 comment 2 replies
-
it works for me like this: but my keys is DateTime, can anyone help with binding? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a dictionary representing a semi-dynamic object. I want to bind to the Icon property.
Aside from the fact that this could be modelled much more elegantly, I'm sure it's possible in XAML to bind to a dictionary key, but I don't know the syntax.
The data has this structure:
Here the root binding context is a proper class, but
Properties
is anIDictionary<string, object>
.I tried binding to
Properties[Icon]
but that didn't work.Does anyone know how this should be done?
Beta Was this translation helpful? Give feedback.
All reactions