Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Windows.Data;
  4.  
  5. public class IndexAccessibleListCollectionView : ListCollectionView
  6. {
  7. public IndexAccessibleListCollectionView(IEnumerable collection)
  8. : base(new ArrayList())
  9. {
  10. foreach (object item in collection)
  11. {
  12. base.InternalList.Add(item);
  13. }
  14. }
  15.  
  16. public object this[int index]
  17. {
  18. get
  19. {
  20. return this.GetItemAt(index);
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement