public void ViewClicked(object sender, EventArgs e) { ICollectionView collectionView = CollectionViewSource.GetDefaultView(posts); Post post = (Post) collectionView.CurrentItem; PostViewer postViewer = new PostViewer(posts, collectionView.CurrentPosition, post); NavigationService.Navigate(postViewer); }
public void ViewClicked(object sender, EventArgs e) { ICollectionView collectionView = CollectionViewSource.GetDefaultView(posts); Post post = (Post)collectionView.CurrentItem; PostViewer postViewer = new PostViewer(posts, collectionView.CurrentPosition, post); NavigationService.Navigate(postViewer); }