Remove files that straggled along after everything was renamed from UAP->UWP.

This commit is contained in:
Blake Bender 2015-07-07 12:36:47 -07:00
Родитель 9a1c0ab3d8
Коммит ce1ef177a8
6 изменённых файлов: 0 добавлений и 390 удалений

Просмотреть файл

@ -1,37 +0,0 @@
<Page
x:Class="LoginCpp.Dialogs"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:LoginCpp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid x:Name="LayoutRoot">
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Title Panel -->
<StackPanel Grid.Row="0" Margin="19,0,0,0">
<TextBlock Text="Facebook Sample App" Style="{ThemeResource TitleTextBlockStyle}" Margin="0,12,0,0"/>
<TextBlock Text="Show Dialogs" Margin="0,-6.5,0,26.5" Style="{ThemeResource HeaderTextBlockStyle}" CharacterSpacing="{ThemeResource PivotHeaderItemCharacterSpacing}"/>
</StackPanel>
<!--TODO: Content should be placed within the following grid-->
<Grid Grid.Row="1" x:Name="ContentRoot" Margin="19,9.5,19,0">
<Button Content="Feed" HorizontalAlignment="Left" Height="73" VerticalAlignment="Top" Width="362" Margin="0,-10,0,0" Click="Feed_Click"/>
<Button Content="App Requests" HorizontalAlignment="Left" Height="73" VerticalAlignment="Top" Width="362" Margin="0,49,0,0" Click="AppRequests_Click"/>
</Grid>
</Grid>
</Page>

Просмотреть файл

@ -1,153 +0,0 @@
//
// Dialogs.xaml.cpp
// Implementation of the Dialogs class
//
#include "pch.h"
#include "Dialogs.xaml.h"
using namespace LoginCpp;
using namespace concurrency;
using namespace Facebook;
using namespace Platform;
using namespace Platform::Collections;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::Graphics::Display;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Interop;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
// The Basic Page item template is documented at http://go.microsoft.com/fwlink/?LinkID=390556
Dialogs::Dialogs()
{
InitializeComponent();
SetValue(_defaultViewModelProperty, ref new Platform::Collections::Map<String^, Object^>(std::less<String^>()));
auto navigationHelper = ref new Common::NavigationHelper(this);
SetValue(_navigationHelperProperty, navigationHelper);
navigationHelper->LoadState += ref new Common::LoadStateEventHandler(this, &Dialogs::LoadState);
navigationHelper->SaveState += ref new Common::SaveStateEventHandler(this, &Dialogs::SaveState);
}
DependencyProperty^ Dialogs::_defaultViewModelProperty =
DependencyProperty::Register("DefaultViewModel",
TypeName(IObservableMap<String^, Object^>::typeid), TypeName(Dialogs::typeid), nullptr);
/// <summary>
/// Used as a trivial view model.
/// </summary>
IObservableMap<String^, Object^>^ Dialogs::DefaultViewModel::get()
{
return safe_cast<IObservableMap<String^, Object^>^>(GetValue(_defaultViewModelProperty));
}
DependencyProperty^ Dialogs::_navigationHelperProperty =
DependencyProperty::Register("NavigationHelper",
TypeName(Common::NavigationHelper::typeid), TypeName(Dialogs::typeid), nullptr);
/// <summary>
/// Gets an implementation of <see cref="NavigationHelper"/> designed to be
/// used as a trivial view model.
/// </summary>
Common::NavigationHelper^ Dialogs::NavigationHelper::get()
{
return safe_cast<Common::NavigationHelper^>(GetValue(_navigationHelperProperty));
}
#pragma region Navigation support
/// The methods provided in this section are simply used to allow
/// NavigationHelper to respond to the page's navigation methods.
///
/// Page specific logic should be placed in event handlers for the
/// <see cref="NavigationHelper::LoadState"/>
/// and <see cref="NavigationHelper::SaveState"/>.
/// The navigation parameter is available in the LoadState method
/// in addition to page state preserved during an earlier session.
void Dialogs::OnNavigatedTo(NavigationEventArgs^ e)
{
NavigationHelper->OnNavigatedTo(e);
}
void Dialogs::OnNavigatedFrom(NavigationEventArgs^ e)
{
NavigationHelper->OnNavigatedFrom(e);
}
#pragma endregion
/// <summary>
/// Populates the page with content passed during navigation. Any saved state is also
/// provided when recreating a page from a prior session.
/// </summary>
/// <param name="sender">
/// The source of the event; typically <see cref="NavigationHelper"/>
/// </param>
/// <param name="e">Event data that provides both the navigation parameter passed to
/// <see cref="Frame::Navigate(Type, Object)"/> when this page was initially requested and
/// a dictionary of state preserved by this page during an earlier
/// session. The state will be null the first time a page is visited.</param>
void Dialogs::LoadState(Object^ sender, Common::LoadStateEventArgs^ e)
{
(void) sender; // Unused parameter
(void) e; // Unused parameter
}
/// <summary>
/// Preserves state associated with this page in case the application is suspended or the
/// page is discarded from the navigation cache. Values must conform to the serialization
/// requirements of <see cref="SuspensionManager::SessionState"/>.
/// </summary>
/// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param>
/// <param name="e">Event data that provides an empty dictionary to be populated with
/// serializable state.</param>
void Dialogs::SaveState(Object^ sender, Common::SaveStateEventArgs^ e){
(void) sender; // Unused parameter
(void) e; // Unused parameter
}
void Dialogs::Feed_Click(
Object^ sender,
RoutedEventArgs^ e
)
{
FBSession^ s = FBSession::ActiveSession;
PropertySet^ params = ref new PropertySet();
params->Insert(L"caption", L"I love Brussels Sprouts!");
params->Insert(L"link", L"https://en.wikipedia.org/wiki/Brussels_sprout");
params->Insert(L"description", L"Om Nom Nom!");
create_task(s->ShowFeedDialog(params))
.then([=](FBResult^ DialogResponse)
{
OutputDebugString(L"Showed 'Feed' dialog.\n");
});
}
void Dialogs::AppRequests_Click(
Object^ sender,
RoutedEventArgs^ e
)
{
FBSession^ s = FBSession::ActiveSession;
PropertySet^ params = ref new PropertySet();
params->Insert(L"title", L"I love Brussels Sprouts!");
params->Insert(L"message", L"Om Nom Nom!");
create_task(s->ShowRequestsDialog(params))
.then([=](FBResult^ DialogResponse)
{
OutputDebugString(L"Showed 'Requests' dialog.\n");
});
}

Просмотреть файл

@ -1,53 +0,0 @@
//
// Dialogs.xaml.h
// Declaration of the Dialogs class
//
#pragma once
#include "Dialogs.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 Dialogs sealed
{
public:
Dialogs();
/// <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 Feed_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void AppRequests_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
};
}

Просмотреть файл

@ -1,67 +0,0 @@
<Page
x:Class="LoginCpp.OptionsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:LoginCpp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid x:Name="LayoutRoot">
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Title Panel -->
<StackPanel Grid.Row="0" Margin="19,0,0,0">
<TextBlock Text="Facebook Sample App" Style="{ThemeResource TitleTextBlockStyle}" Margin="0,12,0,0"/>
<TextBlock Text="Options:" Margin="0,-6.5,0,26.5" Style="{ThemeResource HeaderTextBlockStyle}" CharacterSpacing="{ThemeResource PivotHeaderItemCharacterSpacing}"/>
</StackPanel>
<Grid Grid.Row="1" x:Name="ContentRoot" Margin="19,9.5,19,0">
<Button Content="User Info" HorizontalAlignment="Left" Height="68" VerticalAlignment="Top" Width="362" Margin="0,-10,0,0" Click="userInfo_OnClicked"/>
<Button Content="Dialogs" HorizontalAlignment="Left" Height="68" VerticalAlignment="Top" Width="362" Margin="0,74,0,0" Click="dialogs_OnClicked"/>
</Grid>
</Grid>
</Page>
<!--<Page
x:Class="LoginCpp.OptionsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:LoginCpp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
<Grid x:Name="LayoutRoot">
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
--><!-- Title Panel --><!--
<StackPanel Grid.Row="0" Margin="19,0,0,0">
<TextBlock Text="Facebook Sample App" Style="{ThemeResource TitleTextBlockStyle}" Margin="0,12,0,0"/>
<TextBlock Text="Options:" Margin="0,-6.5,0,26.5" Style="{ThemeResource HeaderTextBlockStyle}" CharacterSpacing="{ThemeResource PivotHeaderItemCharacterSpacing}"/>
</StackPanel>
--><!--TODO: Content should be placed within the following grid--><!--
</Grid>
</Page>-->

Просмотреть файл

@ -1,48 +0,0 @@
//
// OptionsPage.xaml.cpp
// Implementation of the OptionsPage class
//
#include "pch.h"
#include "OptionsPage.xaml.h"
#include "UserInfo.xaml.h"
#include "Dialogs.xaml.h"
using namespace LoginCpp;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
OptionsPage::OptionsPage()
{
InitializeComponent();
}
void OptionsPage::userInfo_OnClicked(
Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e)
{
LoginCpp::App^ a = dynamic_cast<LoginCpp::App^>(Application::Current);
Windows::UI::Xaml::Controls::Frame^ f = a->CreateRootFrame();
f->Navigate(UserInfo::typeid);
}
void OptionsPage::dialogs_OnClicked(
Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e
)
{
LoginCpp::App^ a = dynamic_cast<LoginCpp::App^>(Application::Current);
Windows::UI::Xaml::Controls::Frame^ f = a->CreateRootFrame();
f->Navigate(Dialogs::typeid);
}

Просмотреть файл

@ -1,32 +0,0 @@
//
// OptionsPage.xaml.h
// Declaration of the OptionsPage class
//
#pragma once
#include "OptionsPage.g.h"
namespace LoginCpp
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
[Windows::Foundation::Metadata::WebHostHidden]
public ref class OptionsPage sealed
{
public:
OptionsPage();
private:
void userInfo_OnClicked(
Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e
);
void dialogs_OnClicked(
Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e
);
};
}