text: ﻿/****************************** Module Header ******************************\
  * Module Name:  ImagesPage.xaml.h
  * Project:      CppUniversalAppImageToVideo
  * Copyright (c) Microsoft Corporation.
  *
  * This page is used to display selected images.
  *
  * This source is subject to the Microsoft Public License.
  * See http://www.microsoft.com/en-us/openness/licenses.aspx#MPL
  * All other rights reserved.
  *
  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
  \***************************************************************************/
  
  #pragma once
  
  #include "ImagesPage.g.h"
  #include "Common\NavigationHelper.h"
  
  namespace CppUniversalAppImageToVideo
  {
  	/// <summary>
  	/// A basic page that provides characteristics common to most applications.
  	/// </summary>
  	[Windows::Foundation::Metadata::WebHostHidden]
  	public ref class ImagesPage sealed
  	{
  	public:
  		ImagesPage();
  
  		/// <summary>
  		/// Gets the view model for this <see cref="Page"/>. 
  		/// This can be changed to a strongly typed view model.
  		/// </summary>
  		property Windows::Foundation::Collections::IObservableMap<Platform::String^, Platform::Object^>^ DefaultViewModel
  		{
  			Windows::Foundation::Collections::IObservableMap<Platform::String^, Platform::Object^>^  get();
  		}
  
  		/// <summary>
  		/// Gets the <see cref="NavigationHelper"/> associated with this <see cref="Page"/>.
  		/// </summary>
  		property Common::NavigationHelper^ NavigationHelper
  		{
  			Common::NavigationHelper^ get();
  		}
  
  	protected:
  		virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
  		virtual void OnNavigatedFrom(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
  
  	private:
  		Platform::Collections::Vector<Windows::UI::Xaml::Controls::Image^>^ m_images;
  		Platform::Collections::Vector<Windows::Storage::StorageFile^>^ m_files;
  
  		void LoadState(Platform::Object^ sender, Common::LoadStateEventArgs^ e);
  		void SaveState(Platform::Object^ sender, Common::SaveStateEventArgs^ e);
  
  		static Windows::UI::Xaml::DependencyProperty^ _defaultViewModelProperty;
  		static Windows::UI::Xaml::DependencyProperty^ _navigationHelperProperty;
  		void ImageGV_ItemClick(Platform::Object^ sender, Windows::UI::Xaml::Controls::ItemClickEventArgs^ e);
  		void OkBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  	};
  
  }
  