void PopulateView(string path) { ShelfContent.Children.Clear(); var items = ShelfItem.Find(path); foreach (var i in items) { ShelfContent.Children.Add(i); } }
private void PopulateView(string path) { var items = ShelfItem.Find(path); clones = new List <NodeResource>(); ResourcesList.Items.Clear(); foreach (var item in items) { clones.Add(item.Clone()); } foreach (var item in clones) { item.MouseDown += Item_MouseDown; ResourcesList.Items.Add(item); } }