| 1 |
/*** |
| 2 |
* Copyright (C) Microsoft. All rights reserved. |
| 3 |
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. |
| 4 |
* |
| 5 |
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ |
| 6 |
* |
| 7 |
* MainPage.xaml.h - Declaration of the MainPage class. Also includes |
| 8 |
* the declaration for the FacebookAlbum class that the GridView databinds to. |
| 9 |
* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
| 10 |
****/ |
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include "MainPage.g.h" |
| 14 |
|
| 15 |
namespace FacebookDemo |
| 16 |
{ |
| 17 |
/// <summary> |
| 18 |
/// An empty page that can be used on its own or navigated to within a Frame. |
| 19 |
/// </summary> |
| 20 |
public ref class MainPage sealed |
| 21 |
{ |
| 22 |
public: |
| 23 |
MainPage(); |
| 24 |
|
| 25 |
protected: |
| 26 |
virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override; |
| 27 |
|
| 28 |
private: |
| 29 |
void LoginButton_Click_1(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e); |
| 30 |
void AlbumButton_Click_1(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e); |
| 31 |
}; |
| 32 |
|
| 33 |
[Windows::UI::Xaml::Data::Bindable] |
| 34 |
[Windows::Foundation::Metadata::WebHostHidden] |
| 35 |
public ref class FacebookAlbum sealed |
| 36 |
{ |
| 37 |
internal: |
| 38 |
FacebookAlbum(std::wstring title, int count, std::wstring id, std::wstring photo_id): |
| 39 |
title_(title), count_(count), id_(id), photo_id_(photo_id) {} |
| 40 |
|
| 41 |
public: |
| 42 |
property Platform::String^ Title { |
| 43 |
Platform::String^ get(); |
| 44 |
} |
| 45 |
|
| 46 |
property int Count { |
| 47 |
int get(); |
| 48 |
} |
| 49 |
|
| 50 |
property Windows::UI::Xaml::Media::ImageSource^ Preview { |
| 51 |
Windows::UI::Xaml::Media::ImageSource^ get(); |
| 52 |
} |
| 53 |
|
| 54 |
private: |
| 55 |
std::wstring id_; |
| 56 |
std::wstring title_; |
| 57 |
std::wstring photo_id_; |
| 58 |
int count_; |
| 59 |
Windows::UI::Xaml::Media::ImageSource^ preview_; |
| 60 |
}; |
| 61 |
} |