コード例 #1
0
ファイル: UIShelf.xaml.cs プロジェクト: xuyanning/Materia
        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);
            }
        }