private void Grid_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            ActiveUserAndPicture uap = new ActiveUserAndPicture();
            Picture picture          = (Picture)PhotoList.SelectedItem;

            NavigationService.Navigate(new Uri("/DetailPicturePage.xaml?user="******"&pictureId=" + picture.PictureId, UriKind.Relative));
        }
예제 #2
0
        /// The methods provided in this section are simply used to allow
        /// NavigationHelper to respond to the page's navigation methods.
        ///
        /// Page specific logic should be placed in event handlers for the
        /// <see cref="GridCS.Common.NavigationHelper.LoadState"/>
        /// and <see cref="GridCS.Common.NavigationHelper.SaveState"/>.
        /// The navigation parameter is available in the LoadState method
        /// in addition to page state preserved during an earlier session.

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            navigationHelper.OnNavigatedTo(e);
            uap = (ActiveUserAndPicture)e.Parameter;
            _vm.ActivePicture = uap.Picture;
            _vm.GetUserByEmail(uap.User.Email);
            _vm.LoadPictureComments(uap.Picture.PictureId);
        }
예제 #3
0
        private void grvPictures_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActiveUserAndPicture uap = new ActiveUserAndPicture();

            uap.Picture = (Picture)e.ClickedItem;
            uap.User    = _vm.ActiveUser;
            Frame.Navigate(typeof(DetailPhotoPage), uap);
        }
예제 #4
0
 private void Picture3_Tapped(object sender, TappedRoutedEventArgs e)
 {
     if (_vm.ActiveUser == null)
     {
     }
     else
     {
         ActiveUserAndPicture uap = new ActiveUserAndPicture();
         uap.Picture = _vm.Pictures[2];
         uap.User    = _vm.ActiveUser;
         Frame.Navigate(typeof(DetailPhotoPage), uap);
     }
 }