Example #1
0
        private void RenderIndexes()
        {
            var list = new List <IndexDescriptor>();

            foreach (var indexDescriptor in _indexes)
            {
                if (indexDescriptor.Name.IsFilterMatch(FilterText))
                {
                    list.Add(indexDescriptor);
                }
            }

            IndexList.ItemsSource = null;
            IndexList.ItemsSource = list.OrderBy(c => c.Name);
            _indexListSorter.Resort();

            IndexList.ResizeColumn(NameColumn);

            if (_indexes.Count > 0)
            {
                IndexList.SelectedIndex = 0;
            }
        }