private void GridOnePressed(object obj) { UIDispatcherHelper.CallOnUIThread(() => { var list = new List <ShortModel> { new ShortModel { Address = "Lisniy av", Email = "forestglider", Id = 0 }, new ShortModel { Address = "Zhukova str", Email = "dbalykin", Id = 1 }, new ShortModel { Address = "Goloseevskiy av", Email = "b_dmitriy82", Id = 2 } }; ItemsCollection = new ObservableCollection <ShortModel>(list); SortingCollection = new ObservableCollection <SortingModel>(); }); }
private void GridTwoPressed(object obj) { UIDispatcherHelper.CallOnUIThread(() => { var list = new List <LongModel> { new LongModel { Class = "First", Color = "Red", File = "system.exe", Path = "c:\\Windows", Pen = "thin_pad_pen", Severity = "High", Significance = "High" }, new LongModel { Class = "Second", Color = "Greed", File = "magnify.cmd", Path = "c:\\Program Files", Pen = "absent", Severity = "Low", Significance = "Medium" }, new LongModel { Class = "Third", Color = "Blue", File = "notes.txt", Path = "c:\\Documents", Pen = "auto_pen", Severity = "Acceptable", Significance = "Medium" } }; ItemsCollection = new ObservableCollection <LongModel>(list); SortingCollection = new ObservableCollection <SortingModel>(); }); }