-
Beta Was this translation helpful? Give feedback.
Answered by
jp2masa
Feb 18, 2021
Replies: 1 comment 9 replies
-
|
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
CarlosEX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ListBox.Items
is an enumerable. So for example you could dothis.DataContext = new Person[] { new Person() { ... } }
and then<ListBox Items="{Binding}"
(this would bind the items to theDataContext
value itself, which is the array).