コード例 #1
0
 private void ComposeData()
 {
     Root.Children.Clear();
     foreach (CategoryEntity item in DataManager.Instance.Categories)
     {
         UICategoryEntity uiItem = UICategoryEntity.CreateFrom(item);
         if (uiItem.IsNull())
         {
             continue;
         }
         Root.Children.Add(uiItem);
     }
     Root.IsSelected = true;
     //Root.Children = CollectionViewSource.GetDefaultView(source);
     //Root.Children.Refresh();
 }