Hi
I am trying to display 100 images in GridView control. I want to create a pagination for GridView. I could have created with CollectionViewSource in WPF. However I am new to the WinRT.
So here is what I did.
1: Created a UserControl with Image and FileName and binded them
public class ImgDisp
{
public string ImgPath {get;set;}
public string FileName{get;set;}
}
2: Now I used GridView and and UserControl as ItemTemplate.
3: Created an ObservableCollection<ImgDisp> and set it as ItemsSource for GridView. It worked as it should.
4: Now I added SfDataPager and set the source as ObservableCollection<ImgDisp> then used PagedSource for GridView ItemsSource. Let say PageSize is 10.
5: Now GridView only displays 10 UserControl no File Name or Image.
How can I solve this..?