private void BindRepository() { RemoteCollectionView<Person> rcv = new RemoteCollectionView<Person>(new Person().Get); //using (IDisposable defer = rcv.DeferRefresh()) //{ PeopleGrid.ItemsSource = rcv; //rcv.SortDescriptions.Add(new SortDescription("Age", ListSortDirection.Descending)); //rcv.GroupDescriptions.Add(new PropertyGroupDescription("Country")); //} }
public PagingSample() { InitializeComponent(); _remoteCollectionView = new RemoteCollectionView(Load, OnLoadCompleted); FirstDemoRoot.DataContext = _remoteCollectionView; _asyncRemoteCollectionView = new AsyncRemoteCollectionView(LoadAsync, OnAsyncLoadCompleted); AsyncDemoRoot.DataContext = _asyncRemoteCollectionView; Loaded += PagingSample_Loaded; }
private void SetSource() { RemoteCollectionView<Person> rcv = new RemoteCollectionView<Person>(new Person().Get); PagedItemsSource = rcv; }