コード例 #1
0
        protected void AddSortDescription(SortDescription sort, bool withReset = false)
        {
            if (withReset)
            {
                ItemsView.SortDescriptions.Clear();
            }

            ItemsView.SortDescriptions.Add(sort);
            ItemsView.RefreshSorting();
        }
コード例 #2
0
 protected void ResetSort()
 {
     ItemsView.SortDescriptions.Clear();
     ItemsView.RefreshSorting();
 }