├── .gitignore ├── LICENSE ├── README.md ├── custom.props ├── samples ├── LoginCpp-UWP │ ├── LoginCpp-UWP.sln │ └── LoginCpp │ │ ├── App.xaml │ │ ├── App.xaml.cpp │ │ ├── App.xaml.h │ │ ├── Assets │ │ ├── Logo.scale-100.png │ │ ├── SmallLogo.scale-100.png │ │ ├── SplashScreen.scale-100.png │ │ ├── StoreLogo.scale-100.png │ │ └── WideLogo.scale-100.png │ │ ├── Common │ │ ├── NavigationHelper.cpp │ │ ├── NavigationHelper.h │ │ ├── RelayCommand.cpp │ │ ├── RelayCommand.h │ │ ├── SuspensionManager.cpp │ │ └── SuspensionManager.h │ │ ├── Dialogs.xaml │ │ ├── Dialogs.xaml.cpp │ │ ├── Dialogs.xaml.h │ │ ├── FBPageBindable.cpp │ │ ├── FBPageBindable.h │ │ ├── LoginCpp.vcxproj │ │ ├── LoginCpp.vcxproj.filters │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cpp │ │ ├── MainPage.xaml.h │ │ ├── Package.appxmanifest │ │ ├── Resources.resw │ │ ├── UserInfo.xaml │ │ ├── UserInfo.xaml.cpp │ │ ├── UserInfo.xaml.h │ │ ├── UserLikes.xaml │ │ ├── UserLikes.xaml.cpp │ │ ├── UserLikes.xaml.h │ │ ├── pch.cpp │ │ └── pch.h ├── LoginCpp │ ├── LoginCpp.sln │ └── LoginCpp │ │ ├── LoginCpp.Shared │ │ ├── App.xaml │ │ ├── App.xaml.cpp │ │ ├── App.xaml.h │ │ ├── Dialogs.Shared.xaml.cpp │ │ ├── FBPageBindable.cpp │ │ ├── FBPageBindable.h │ │ ├── LoginCpp.Shared.vcxitems │ │ ├── LoginCpp.Shared.vcxitems.filters │ │ ├── MainPage.Shared.xaml.cpp │ │ ├── Resources.resw │ │ ├── UserInfo.Shared.xaml.cpp │ │ ├── UserLikes.Shared.xaml.cpp │ │ ├── pch.cpp │ │ └── pch.h │ │ ├── LoginCpp.Windows │ │ ├── Assets │ │ │ ├── Logo.scale-100.png │ │ │ ├── SmallLogo.scale-100.png │ │ │ ├── SplashScreen.scale-100.png │ │ │ └── StoreLogo.scale-100.png │ │ ├── Common │ │ │ ├── NavigationHelper.cpp │ │ │ ├── NavigationHelper.h │ │ │ ├── RelayCommand.cpp │ │ │ ├── RelayCommand.h │ │ │ ├── SuspensionManager.cpp │ │ │ └── SuspensionManager.h │ │ ├── Dialogs.xaml │ │ ├── Dialogs.xaml.cpp │ │ ├── Dialogs.xaml.h │ │ ├── LoginCpp.Windows.vcxproj │ │ ├── LoginCpp.Windows.vcxproj.filters │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cpp │ │ ├── MainPage.xaml.h │ │ ├── Package.appxmanifest │ │ ├── UserInfo.xaml │ │ ├── UserInfo.xaml.cpp │ │ ├── UserInfo.xaml.h │ │ ├── UserLikes.xaml │ │ ├── UserLikes.xaml.cpp │ │ └── UserLikes.xaml.h │ │ └── LoginCpp.WindowsPhone │ │ ├── Assets │ │ ├── Logo.scale-240.png │ │ ├── SmallLogo.scale-240.png │ │ ├── SplashScreen.scale-240.png │ │ ├── Square71x71Logo.scale-240.png │ │ ├── StoreLogo.scale-240.png │ │ └── WideLogo.scale-240.png │ │ ├── Common │ │ ├── NavigationHelper.cpp │ │ ├── NavigationHelper.h │ │ ├── RelayCommand.cpp │ │ ├── RelayCommand.h │ │ ├── SuspensionManager.cpp │ │ └── SuspensionManager.h │ │ ├── Dialogs.xaml │ │ ├── Dialogs.xaml.cpp │ │ ├── Dialogs.xaml.h │ │ ├── LoginCpp.WindowsPhone.vcxproj │ │ ├── LoginCpp.WindowsPhone.vcxproj.filters │ │ ├── LoginCpp.WindowsPhone.vcxproj.user │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cpp │ │ ├── MainPage.xaml.h │ │ ├── Package.appxmanifest │ │ ├── UserInfo.xaml │ │ ├── UserInfo.xaml.cpp │ │ ├── UserInfo.xaml.h │ │ ├── UserLikes.xaml │ │ ├── UserLikes.xaml.cpp │ │ └── UserLikes.xaml.h ├── LoginCs │ ├── LoginCs.sln │ └── LoginCs │ │ ├── LoginCs.Shared │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Dialogs.xaml.cs │ │ ├── FBCSObjectImplementation.ttinclude │ │ ├── LoginCs.Shared.projitems │ │ ├── LoginCs.Shared.shproj │ │ ├── MainPage.xaml.cs │ │ ├── MyFBPage.cs │ │ ├── MyFBPage.tt │ │ ├── MyFBPage.xml │ │ ├── PageGetter.cs │ │ ├── Resources.resw │ │ ├── UserInfo.xaml.cs │ │ ├── UserLikes.xaml.cs │ │ └── Utility.ttinclude │ │ ├── LoginCs.Windows │ │ ├── Assets │ │ │ ├── Logo.scale-100.png │ │ │ ├── SmallLogo.scale-100.png │ │ │ ├── SplashScreen.scale-100.png │ │ │ └── StoreLogo.scale-100.png │ │ ├── Dialogs.xaml │ │ ├── LoginCs.Windows.csproj │ │ ├── MainPage.xaml │ │ ├── Package.appxmanifest │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── UserInfo.xaml │ │ ├── UserLikes.xaml │ │ └── packages.config │ │ └── LoginCs.WindowsPhone │ │ ├── Assets │ │ ├── Logo.scale-240.png │ │ ├── SmallLogo.scale-240.png │ │ ├── SplashScreen.scale-240.png │ │ ├── Square71x71Logo.scale-240.png │ │ ├── StoreLogo.scale-240.png │ │ └── WideLogo.scale-240.png │ │ ├── Dialogs.xaml │ │ ├── LoginCs.WindowsPhone.csproj │ │ ├── MainPage.xaml │ │ ├── Package.appxmanifest │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── UserInfo.xaml │ │ ├── UserLikes.xaml │ │ └── packages.config └── SDKCppUnit │ ├── SDKCppUnit.Shared │ ├── APIResult.cpp.tt │ ├── APIResult.h.tt │ ├── APIResult.xml │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── AppToken.cpp │ ├── AppToken.h │ ├── Resources.resw │ ├── SDKCppUnit.Shared.vcxitems │ ├── SDKCppUnit.Shared.vcxitems.filters │ ├── SDKCppUnitObjectHeader.ttinclude │ ├── SDKCppUnitObjectImplementation.ttinclude │ ├── SDKCppUnitStrings.h │ ├── TestContext.cpp │ ├── TestContext.h │ ├── TestPhoto.cpp.tt │ ├── TestPhoto.h.tt │ ├── TestPhoto.xml │ ├── TestRunner.cpp │ ├── TestRunner.h │ ├── TestUser.cpp.tt │ ├── TestUser.h.tt │ ├── TestUser.xml │ ├── Utility.ttinclude │ ├── codegen.cmd │ ├── pch.cpp │ └── pch.h │ ├── SDKCppUnit.Windows │ ├── Assets │ │ ├── Logo.scale-100.png │ │ ├── SmallLogo.scale-100.png │ │ ├── SplashScreen.scale-100.png │ │ ├── StoreLogo.scale-100.png │ │ └── animal-1409304111INq.jpg │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── SDKCppUnit.Windows.vcxproj │ └── SDKCppUnit.Windows.vcxproj.filters │ └── SDKCppUnit.WindowsPhone │ ├── Assets │ ├── Logo.scale-240.png │ ├── SmallLogo.scale-240.png │ ├── SplashScreen.scale-240.png │ ├── Square71x71Logo.scale-240.png │ ├── StoreLogo.scale-240.png │ ├── WideLogo.scale-240.png │ └── animal-1409304111INq.jpg │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── SDKCppUnit.WindowsPhone.vcxproj │ └── SDKCppUnit.WindowsPhone.vcxproj.filters └── winsdkfb ├── FBWinPhoneStoreCppTests ├── Assets │ ├── Logo.scale-240.png │ ├── SmallLogo.scale-240.png │ ├── SplashScreen.scale-240.png │ ├── Square71x71Logo.scale-240.png │ ├── StoreLogo.scale-240.png │ └── WideLogo.scale-240.png ├── FBWinPhoneStoreCppTests.vcxproj ├── FBWinPhoneStoreCppTests.vcxproj.filters ├── Package.appxmanifest ├── pch.cpp ├── pch.h └── unittest1.cpp ├── FBWinStoreCppTests ├── FBWinStoreCppTests.vcxproj ├── FBWinStoreCppTests.vcxproj.filters ├── FBWinStoreCppTests.vcxproj.user ├── Images │ ├── UnitTestLogo.scale-100.png │ ├── UnitTestSmallLogo.scale-100.png │ ├── UnitTestSplashScreen.scale-100.png │ └── UnitTestStoreLogo.scale-100.png ├── LoginTests.cpp ├── Package.appxmanifest ├── pch.cpp ├── pch.h └── targetver.h ├── FBWinStoreCsTests ├── .gitignore ├── FBCSObjectImplementation.ttinclude ├── FBObject.tt ├── FBObject.xml ├── FBPhoto.tt ├── FBPhoto.xml ├── FBSuccess.tt ├── FBSuccess.xml ├── FBTestUser.tt ├── FBTestUser.xml ├── FBWinStoreCsTests.csproj ├── Images │ ├── UnitTestLogo.scale-100.png │ ├── UnitTestSmallLogo.scale-100.png │ ├── UnitTestSplashScreen.scale-100.png │ ├── UnitTestStoreLogo.scale-100.png │ └── animal-1409304111INq.jpg ├── MockHttpClient.cs ├── Package.appxmanifest ├── Properties │ └── AssemblyInfo.cs ├── UnitTest1.cs ├── Utility.ttinclude ├── codegen.cmd ├── data.json └── packages.config ├── build ├── CompareFileDates.exe ├── build-sdk.cmd ├── build-sdk.ps1 ├── nuget │ ├── .gitignore │ ├── VERSION │ ├── build-nupkg.cmd │ ├── download-nuget.cmd │ ├── nuget.exe │ ├── vso_nuget_restore.cmd │ ├── winsdkfb-native.targets │ └── winsdkfb.nuspec └── tools │ └── CompareFileDates │ ├── CompareFileDates.sln │ └── CompareFileDates │ ├── App.config │ ├── CompareFileDates.csproj │ ├── Program.cs │ └── Properties │ └── AssemblyInfo.cs ├── doxygen_winsdkfb.cfg ├── winsdkfb.sln ├── winsdkfb ├── winsdkfb.Shared │ ├── ColorLuminosityConverter.cpp │ ├── ColorLuminosityConverter.h │ ├── Controls │ │ └── FacebookLoginButton.xaml │ ├── FBAppRequest.cpp.tt │ ├── FBAppRequest.h.tt │ ├── FBAppRequest.xml │ ├── FBConstants.h │ ├── FBCursors.cpp.tt │ ├── FBCursors.h.tt │ ├── FBCursors.xml │ ├── FBGraphObjectHeader.ttinclude │ ├── FBGraphObjectImplementation.ttinclude │ ├── FBGroup.cpp.tt │ ├── FBGroup.h.tt │ ├── FBGroup.xml │ ├── FBObject.cpp.tt │ ├── FBObject.h.tt │ ├── FBObject.xml │ ├── FBPage.cpp.tt │ ├── FBPage.h.tt │ ├── FBPage.xml │ ├── FBPageCategory.cpp.tt │ ├── FBPageCategory.h.tt │ ├── FBPageCategory.xml │ ├── FBPaging.cpp.tt │ ├── FBPaging.h.tt │ ├── FBPaging.xml │ ├── FBPermission.cpp.tt │ ├── FBPermission.h.tt │ ├── FBPermission.xml │ ├── FBProfilePicture.cpp.tt │ ├── FBProfilePicture.h.tt │ ├── FBProfilePicture.xml │ ├── FBProfilePictureData.cpp.tt │ ├── FBProfilePictureData.h.tt │ ├── FBProfilePictureData.xml │ ├── FBSingleValue.cpp │ ├── FBSingleValue.h │ ├── FBUser.cpp.tt │ ├── FBUser.h.tt │ ├── FBUser.xml │ ├── FacebookAccessTokenData.cpp │ ├── FacebookAccessTokenData.h │ ├── FacebookAppRequest.cpp │ ├── FacebookAppRequest.h │ ├── FacebookClient.cpp │ ├── FacebookClient.h │ ├── FacebookDialog.xaml │ ├── FacebookDialog.xaml.cpp │ ├── FacebookDialog.xaml.h │ ├── FacebookError.cpp │ ├── FacebookError.h │ ├── FacebookFeedRequest.cpp │ ├── FacebookFeedRequest.h │ ├── FacebookLoginButton.cpp │ ├── FacebookLoginButton.h │ ├── FacebookMediaObject.cpp │ ├── FacebookMediaObject.h │ ├── FacebookMediaStream.cpp │ ├── FacebookMediaStream.h │ ├── FacebookPaginatedArray.cpp │ ├── FacebookPaginatedArray.h │ ├── FacebookPermissions.cpp │ ├── FacebookPermissions.h │ ├── FacebookProfilePictureControl.xaml │ ├── FacebookProfilePictureControl.xaml.cpp │ ├── FacebookProfilePictureControl.xaml.h │ ├── FacebookResult.cpp │ ├── FacebookResult.h │ ├── FacebookSendRequest.cpp │ ├── FacebookSendRequest.h │ ├── FacebookSession.cpp │ ├── FacebookSession.h │ ├── GraphUriBuilder.cpp │ ├── GraphUriBuilder.h │ ├── HlsColor.cpp │ ├── HlsColor.h │ ├── HttpManager.cpp │ ├── HttpManager.h │ ├── HttpMethod.h │ ├── IHttpClient.h │ ├── Images │ │ └── fb_blank_profile_portrait.png │ ├── JsonClassFactory.h │ ├── PPNew.cpp │ ├── PPNew.h │ ├── SDKMessage.h │ ├── ScaleConverter.cpp │ ├── ScaleConverter.h │ ├── Themes │ │ ├── Generic.xaml │ │ └── Styles.xaml │ ├── Utility.ttinclude │ ├── codegen.cmd │ ├── pch.cpp │ ├── pch.h │ ├── winsdkfb.Shared.vcxitems │ └── winsdkfb.Shared.vcxitems.filters ├── winsdkfb.Windows │ ├── winsdkfb.Windows.vcxproj │ ├── winsdkfb.Windows.vcxproj.filters │ └── winsdkfb.props └── winsdkfb.WindowsPhone │ ├── winsdkfb.WindowsPhone.vcxproj │ └── winsdkfb.WindowsPhone.vcxproj.filters ├── winsdkfb_testing_key.pfx └── winsdkfb_uwp ├── FBWinStoreCppTests ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png ├── FBWinStoreCppTests.vcxproj ├── FBWinStoreCppTests.vcxproj.filters ├── FBWinStoreCppTests.vcxproj.user ├── Package.appxmanifest ├── UnitTestApp.rd.xml ├── UnitTestApp.xaml ├── UnitTestApp.xaml.cpp ├── UnitTestApp.xaml.h ├── pch.cpp └── pch.h ├── FBWinStoreCsTests ├── .gitignore ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png ├── FBWinStoreCsTests.csproj ├── Package.appxmanifest ├── Properties │ ├── AssemblyInfo.cs │ └── UnitTestApp.rd.xml ├── UnitTestApp.xaml ├── UnitTestApp.xaml.cs └── project.json ├── winsdkfb_uwp.sln └── winsdkfb_uwp ├── FBAppEvents ├── FacebookAppEvents.cpp └── FacebookAppEvents.h ├── pch.cpp ├── pch.h ├── winsdkfb_uwp.vcxproj └── winsdkfb_uwp.vcxproj.filters /.gitignore: -------------------------------------------------------------------------------- 1 | .nuget 2 | *.csproj.user 3 | *.vcxproj.user 4 | *.opendb 5 | *.opensdf 6 | *.sdf 7 | *.suo 8 | *.VC.db 9 | *.vs 10 | AppPackages 11 | bin 12 | Debug 13 | Doxygen 14 | *.githash.txt 15 | Generated 16 | Generated Files 17 | ipch 18 | packages 19 | Packages.dgml 20 | Release 21 | sdk-build.log 22 | project.lock.json 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Windows SDK for Facebook 2 | 3 | The Windows SDK for Facebook is geared towards app developers creating modern windows applications on both desktop and phone. 4 | Easily integrate Facebook Auth, Like and other Facebook Graph functionality using this SDK. Nuget package for Windows 10 5 | available at: https://www.nuget.org/packages/winsdkfb 6 | 7 | ## Features 8 | 9 | ### Auth 10 | 11 | - Login 12 | - Logout 13 | - Login Button 14 | - Profile Picture control 15 | 16 | ### Dialogs 17 | - Feed dialog 18 | - Request dialog 19 | - Send dialog 20 | 21 | ### Graph 22 | 23 | - Custom Stories 24 | - Post to user’s feed 25 | - Upload Photo 26 | - Like a Page/Object 27 | 28 | ### AppInstalls 29 | - Mobile App Installs (can be disabled by defining \_\_NOFBAPPEVENTS__) 30 | 31 | ## Supported Platforms 32 | 33 | - [x] Windows 8.1+ 34 | - [x] Windows Phone 8.1+ 35 | - [x] Windows 10 36 | 37 | ## Documentation 38 | 39 | - http://microsoft.github.io/winsdkfb 40 | 41 | ## License 42 | See the LICENSE file for licensing information. 43 | 44 | ## Contributing 45 | 46 | All pull requests should be made to the `develop` branch. 47 | 48 | ## Privacy 49 | 50 | https://www.microsoft.com/en-us/privacystatement/default.aspx 51 | -------------------------------------------------------------------------------- /custom.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 0 5 | 15 6 | 7 | 0.15.0 8 | WinSDKFB 9 | 10 | -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/App.xaml.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // 3 | // Copyright (c) 2015 Microsoft Corporation. All rights reserved. 4 | // 5 | // This code is licensed under the MIT License (MIT). 6 | // 7 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 8 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 9 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 10 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 11 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 12 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 13 | // THE SOFTWARE. 14 | // 15 | //****************************************************************************** 16 | 17 | // 18 | // App.xaml.h 19 | // Declaration of the App class. 20 | // 21 | 22 | #pragma once 23 | 24 | #include "App.g.h" 25 | 26 | namespace LoginCpp 27 | { 28 | /// 29 | /// Provides application-specific behavior to supplement the default Application class. 30 | /// 31 | ref class App sealed 32 | { 33 | public: 34 | App(); 35 | 36 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 37 | 38 | #if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP 39 | virtual void OnActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs^ e) override; 40 | #endif 41 | 42 | Windows::UI::Xaml::Controls::Frame^ CreateRootFrame(); 43 | 44 | private: 45 | #if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP 46 | Windows::UI::Xaml::Media::Animation::TransitionCollection^ _transitions; 47 | Windows::Foundation::EventRegistrationToken _firstNavigatedToken; 48 | 49 | void RootFrame_FirstNavigated(Platform::Object^ sender, Windows::UI::Xaml::Navigation::NavigationEventArgs^ e); 50 | #endif 51 | 52 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); 53 | void OnBackRequested(Platform::Object^ sender, Windows::UI::Core::BackRequestedEventArgs ^args); 54 | void OnNavigated(Platform::Object^ sender, Windows::UI::Xaml::Navigation::NavigationEventArgs^ args); 55 | }; 56 | } 57 | -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Assets/Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/winsdkfb/fcc5bef89c610e2d8a21c9551879ba11e79bc8b2/samples/LoginCpp-UWP/LoginCpp/Assets/Logo.scale-100.png -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Assets/SmallLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/winsdkfb/fcc5bef89c610e2d8a21c9551879ba11e79bc8b2/samples/LoginCpp-UWP/LoginCpp/Assets/SmallLogo.scale-100.png -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/winsdkfb/fcc5bef89c610e2d8a21c9551879ba11e79bc8b2/samples/LoginCpp-UWP/LoginCpp/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/winsdkfb/fcc5bef89c610e2d8a21c9551879ba11e79bc8b2/samples/LoginCpp-UWP/LoginCpp/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Assets/WideLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/winsdkfb/fcc5bef89c610e2d8a21c9551879ba11e79bc8b2/samples/LoginCpp-UWP/LoginCpp/Assets/WideLogo.scale-100.png -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Common/RelayCommand.h: -------------------------------------------------------------------------------- 1 | //****************************************************************************** 2 | // 3 | // Copyright (c) 2015 Microsoft Corporation. All rights reserved. 4 | // 5 | // This code is licensed under the MIT License (MIT). 6 | // 7 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 8 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 9 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 10 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 11 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 12 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 13 | // THE SOFTWARE. 14 | // 15 | //****************************************************************************** 16 | 17 | // 18 | // NavigationHelper.cpp 19 | // Decleration of the NavigationHelper and associated classes 20 | // 21 | 22 | #pragma once 23 | 24 | // 25 | // A command whose sole purpose is to relay its functionality 26 | // to other objects by invoking delegates. 27 | // The default return value for the CanExecute method is 'true'. 28 | // needs to be called whenever 29 | // is expected to return a different value. 30 | // 31 | 32 | 33 | namespace LoginCpp 34 | { 35 | namespace Common 36 | { 37 | [Windows::Foundation::Metadata::WebHostHidden] 38 | public ref class RelayCommand sealed :[Windows::Foundation::Metadata::Default] Windows::UI::Xaml::Input::ICommand 39 | { 40 | public: 41 | virtual event Windows::Foundation::EventHandler^ CanExecuteChanged; 42 | virtual bool CanExecute(Object^ parameter); 43 | virtual void Execute(Object^ parameter); 44 | virtual ~RelayCommand(); 45 | 46 | internal: 47 | RelayCommand(std::function canExecuteCallback, 48 | std::function executeCallback); 49 | void RaiseCanExecuteChanged(); 50 | 51 | private: 52 | std::function _canExecuteCallback; 53 | std::function _executeCallback; 54 | }; 55 | } 56 | } -------------------------------------------------------------------------------- /samples/LoginCpp-UWP/LoginCpp/Dialogs.xaml: -------------------------------------------------------------------------------- 1 |  10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |