protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         itemGridView.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
         Constants.StartLoadingAnimation(MainGrid);
         navigateParameter = e.Parameter as FromMapToCollectioin;
     }
     catch (Exception excep) { Constants.ShowErrorDialog(excep, "VideoAlbumModifyView - OnNavigatedTo"); }
 }
 private void Button_AddVideoAlbum_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         DataModel.AlbumDataStructure newVideoAlbum = new DataModel.AlbumDataStructure()
         {
             AlbumName = "",
             AlbumType = "Video",
             Longitude = pushpinData.Longitude,
             Latitude = pushpinData.Latitude,
             PushpinId = DateTime.Now.ToString() + pushpinData.Longitude
         };
         FromMapToCollectioin parameter = new FromMapToCollectioin();
         parameter.slectedAlbum = newVideoAlbum;
         parameter.pushpin = pushpinData;
         this.Frame.Navigate(typeof(VideoAlbumModifyView), parameter);
     }
     catch (Exception excep) { Utils.Constants.ShowErrorDialog(excep, "AlbumCollectionView - Button_AddVideoAlbum_Click"); }
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         VariableGridView.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
         Constants.StartLoadingAnimation(MainGrid);
         if (e.Parameter != null)
         {
             navigateParameter = e.Parameter as FromMapToCollectioin;
         }
     }
     catch (Exception excep) { Constants.ShowErrorDialog(excep, "PhotoExposition - OnNavigatedTo"); }
 }
 private void Button_ModifyAlbum_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (itemGridView.SelectedItem != null && Utils.LifeMapManager.GetInstance().ListOfAllAlbums.Contains(itemGridView.SelectedItem as DataModel.AlbumDataStructure))
         {
             FromMapToCollectioin parameter = new FromMapToCollectioin();
             parameter.slectedAlbum = itemGridView.SelectedItem as DataModel.AlbumDataStructure;
             parameter.pushpin = pushpinData;
             dispatcherTimer.Stop();
             if (parameter.slectedAlbum.AlbumType == "Photo")
                 this.Frame.Navigate(typeof(AlbumModifyView), parameter);
             else if (parameter.slectedAlbum.AlbumType == "Video")
                 this.Frame.Navigate(typeof(VideoAlbumModifyView), parameter);
         }
     }
     catch (Exception excep) { Utils.Constants.ShowErrorDialog(excep, "AlbumCollectionView - Button_ModifyAlbum_Click"); }
 }
 private void Button_PlayAlbum_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         FromMapToCollectioin parameter = new FromMapToCollectioin();
         parameter.slectedAlbum = itemGridView.SelectedItem as DataModel.AlbumDataStructure;
         parameter.pushpin = pushpinData;
         if (parameter.slectedAlbum != null)
         {
             dispatcherTimer.Stop();
             if (parameter.slectedAlbum.AlbumType == "Photo")
                 this.Frame.Navigate(typeof(PhotoExposition), parameter);
             else if (parameter.slectedAlbum.AlbumType == "Video")
                 this.Frame.Navigate(typeof(VideoExposition), parameter);
         }
     }
     catch (Exception excep) { Constants.ShowErrorDialog(excep, "AlbumCollectionView - Button_PlayAlbum_Click"); }
 }
 private void focusToSelectedAlbum(FromMapToCollectioin data)
 {
     for (int i = 0; i < AllCollectionByDateGroups.Count; i++)
     {
         foreach (var row in (GroupInfoList<DataModel.AlbumDataStructure>)AllCollectionByDateGroups[i])
         {
             if (((DataModel.AlbumDataStructure)row).Id == data.slectedAlbum.Id)
             {
                 itemGridView.SelectedItem = (DataModel.AlbumDataStructure)row;
                 itemGridView.ScrollIntoView(itemGridView.SelectedItem, ScrollIntoViewAlignment.Leading);
                 break;
             }
         }
     }
 }
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.  The Parameter
 /// property is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         itemGridView.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
         Constants.StartLoadingAnimation(MainGrid);
         if (e.Parameter != null && e.Parameter is FromMapToCollectioin)
         {
             _parameter = e.Parameter as FromMapToCollectioin;
         }
     }
     catch (Exception excep) { Utils.Constants.ShowErrorDialog(excep, "AlbumCollectionView - OnNavigatedTo"); }
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         itemGridView.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
         Constants.StartLoadingAnimation(MainGrid);
         if (e.Parameter != null)
         {
             navigateParameter = e.Parameter as FromMapToCollectioin;
         }
     }
     catch (Exception excep) { Constants.ShowErrorDialog(excep, "VideoPlayPage - VolumeSlider_ValueChanged"); }
 }