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); } } }