コード例 #1
0
        private void RefreshTileSwatches()
        {
            this.tile_swatches.Children.Clear();
            string category = (this.tile_category_picker.SelectedValue ?? "").ToString();

            if (category.Length > 0)
            {
                foreach (Tile t in TileStore.GetSortedTilesForCategory(category))
                {
                    TileSwatch ts = new TileSwatch(t);
                    ts.UpdateSelectionVisual();
                    this.tile_swatches.Children.Add(ts);
                }
            }
        }
コード例 #2
0
 private void RefreshTileSwatches()
 {
     this.tile_swatches.Children.Clear();
     string category = (this.tile_category_picker.SelectedValue ?? "").ToString();
     if (category.Length > 0)
     {
         foreach (Tile t in TileStore.GetSortedTilesForCategory(category))
         {
             TileSwatch ts = new TileSwatch(t);
             ts.UpdateSelectionVisual();
             this.tile_swatches.Children.Add(ts);
         }
     }
 }