text: ﻿//******************************************************************************
  //
  // Copyright (c) 2015 Microsoft Corporation. All rights reserved.
  //
  // This code is licensed under the MIT License (MIT).
  //
  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  // THE SOFTWARE.
  //
  //******************************************************************************
  
  //
  // UserInfo.xaml.h
  // Declaration of the UserInfo class
  //
  
  #pragma once
  
  #include "UserInfo.g.h"
  #include "Common\NavigationHelper.h"
  
  namespace LoginCpp
  {
  	/// <summary>
  	/// A basic page that provides characteristics common to most applications.
  	/// </summary>
  	[Windows::Foundation::Metadata::WebHostHidden]
  	public ref class UserInfo sealed
  	{
  	public:
  		UserInfo();
  
  		/// <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:
          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 Button_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
          void UserLikesButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
          void UserGroupsButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
          void BackButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
      };
  
  }
  