/// <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 async override void OnNavigatedTo(NavigationEventArgs e)
        {
            try
            {
                parameter = e.Parameter as FromExpositionToDiaporama;
                ListPhoto = new ObservableCollection<Pages.PhotoDataStructure>();
                listSmallPhoto = parameter.ListPhoto;
                foreach (var row in listSmallPhoto)
                {
                    try
                    {
                        StorageFile file = await Windows.Storage.StorageFile.GetFileFromPathAsync(row.PhotoData.ImagePath);
                        StorageItemThumbnail fileThumbnail = await file.GetThumbnailAsync(ThumbnailMode.SingleItem, (uint)Constants.ScreenHeight, ThumbnailOptions.UseCurrentScale);
                        BitmapImage bitmapImage = new BitmapImage();
                        bitmapImage.SetSource(fileThumbnail);

                        ListPhoto.Add(new Pages.PhotoDataStructure()
                        {
                            PhotoData = row.PhotoData,
                            Image = bitmapImage
                        });
                    }
                    catch
                    { }
                }
                flipView.ItemsSource = ListPhoto;
                if (listSmallPhoto.Count > 0)
                    pageTitle.Text = parameter.albumName;
                dispatcherTimer2 = new DispatcherTimer();
                dispatcherTimer2.Tick += dispatcherTimer2_Tick;
                dispatcherTimer2.Interval = new TimeSpan(0, 0, 0, 0, 2);
                dispatcherTimer2.Start();
            }
            catch (Exception excep) { Constants.ShowErrorDialog(excep, "PhotoPlayPage - OnNavigatedTo"); }
        }
 private void Button_PlayPhoto_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         FromExpositionToDiaporama parameter = new FromExpositionToDiaporama();
         for (int i = 0; i < ListPhoto.Count; i++)
         {
             parameter.ListPhoto.Add(ListPhoto[i].photoDataStructure);
         }
         parameter.selectedIndex = VariableGridView.SelectedIndex;
         parameter.navigateParameter = navigateParameter;
         parameter.albumName = pageTitle.Text;
         this.Frame.Navigate(typeof(PhotoPlayPage), parameter);
     }
     catch (Exception excep) { Constants.ShowErrorDialog(excep, "PhotoExposition - Button_PlayPhoto_Click_1"); }
 }