-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work out how to handle lazily-evaluated ItemsControl.Items #54
Comments
In WPF the Items type is ItemsCollection.
|
The |
ItemsControl needs to work with finite enumerables anyway, so we might as well use IList there |
We now have |
If a lazily-evaluated IEnumerable is assigned to
ItemsControl.Items
then stuff breaks, as the sequence gets re-enumerated every time the control accesses the items.Some possible solutions:
Items
andItemsSource
. This feels a little messy to me, having two properties to do essentially the same thing, and making one read-only in certain situations etc as in WPF.Items
fromIEnumerable
toICollection
.ICollection
orIList
etc.@SuperJMN thoughts? Any other ideas?
The text was updated successfully, but these errors were encountered: