-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up infra to remove WebView with FeatureProps
- Loading branch information
1 parent
bbc4549
commit 4b4f984
Showing
10 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
enc_temp_folder/27db99d5cbcd18bc1a9a2ff5e5413e42/MainPage.xaml.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
// | ||
// MainPage.xaml.cpp | ||
// Implementation of the MainPage class. | ||
// | ||
|
||
#include "pch.h" | ||
#include "MainPage.xaml.h" | ||
#include "LeakCycleTestCX.xaml.h" | ||
#include "MenuBarTestPage.xaml.h" | ||
#include "CornerRadiusTestPage.xaml.h" | ||
#include "TreeViewTestPage.xaml.h" | ||
#include "BackdropMaterialTestPage.xaml.h" | ||
#ifndef _ARM_ | ||
#ifdef WEBVIEW2_INCLUDED | ||
#include "WebView2TestPage.xaml.h" | ||
#endif | ||
#endif | ||
|
||
using namespace TestAppCX; | ||
|
||
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::Interop; | ||
using namespace Windows::UI::Xaml::Media; | ||
using namespace Windows::UI::Xaml::Navigation; | ||
|
||
MainPage::MainPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
void MainPage::OnNavigatedTo(NavigationEventArgs^ e) | ||
{ | ||
auto coreTitleBar = Windows::ApplicationModel::Core::CoreApplication::GetCurrentView()->TitleBar; | ||
coreTitleBar->ExtendViewIntoTitleBar = false; | ||
} | ||
|
||
void TestAppCX::MainPage::GoToLeakTestControlPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) | ||
{ | ||
auto app = dynamic_cast<App^>(Application::Current); | ||
app->RootFrame->Navigate(TypeName(LeakCycleTestCX::typeid), nullptr); | ||
|
||
} | ||
|
||
void TestAppCX::MainPage::GoToMenuBarTestPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) | ||
{ | ||
auto app = dynamic_cast<App^>(Application::Current); | ||
app->RootFrame->Navigate(TypeName(MenuBarTestPage::typeid), nullptr); | ||
} | ||
|
||
void TestAppCX::MainPage::GoToCornerRadiusTestPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) | ||
{ | ||
auto app = dynamic_cast<App^>(Application::Current); | ||
app->RootFrame->Navigate(TypeName(CornerRadiusTestPage::typeid), nullptr); | ||
} | ||
|
||
void TestAppCX::MainPage::GoToTreeViewTestPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) | ||
{ | ||
auto app = dynamic_cast<App^>(Application::Current); | ||
app->RootFrame->Navigate(TypeName(TreeViewTestPage::typeid), nullptr); | ||
} | ||
|
||
void TestAppCX::MainPage::GoToBackdropMaterialTestPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) | ||
{ | ||
auto app = dynamic_cast<App^>(Application::Current); | ||
app->RootFrame->Navigate(TypeName(BackdropMaterialTestPage::typeid), nullptr); | ||
} | ||
|
||
void TestAppCX::MainPage::GoToWebView2TestPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) | ||
{ | ||
auto app = dynamic_cast<App^>(Application::Current); | ||
#ifndef _ARM_ | ||
#ifdef WEBVIEW2_INCLUDED | ||
app->RootFrame->Navigate(TypeName(WebView2TestPage::typeid), nullptr); | ||
#endif | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4b4f984
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test/TestAppCX/TestAppCX.vcxproj