private void UpdateSorting(ResultSortOrder sortOrder) { this.MainView.Result.GroupedCards.First(g => g.Key.Type == CardGroupType.KingdomCard).Sort(sortOrder); // The sort button will display the next sort order option String nextSort = sortOrder.Next().ToString(); this.SortButton.Text = Strings.ResourceManager.GetString("Results_Sort" + nextSort, Strings.Culture); this.SortButton.IconUri = new Uri("/images/appbar.sort." + nextSort + ".png", UriKind.Relative); }
private void UpdateSorting(ResultSortOrder sortOrder) { this.MainView.Result.GroupedCards.First(g => g.Key.Type == CardGroupType.KingdomCard).Sort(sortOrder); // The sort button will display the next sort order option String nextSort = sortOrder.Next().ToString(); this.SortButton.Label = Strings.GetString("Results_Sort" + nextSort); //this.SortButton.Icon = new BitmapIcon() //{ // UriSource = new Uri("ms-appx:///Images/appbar.sort." + nextSort + ".png") //}; }