示例#1
0
        void PopulateView(string path)
        {
            ShelfContent.Children.Clear();
            var items = ShelfItem.Find(path);

            foreach (var i in items)
            {
                ShelfContent.Children.Add(i);
            }
        }
示例#2
0
        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);
            }
        }