Skip to content

Commit 6c48c72

Browse files
authored
The Test App for Microsoft.Windows.Storage.Pickers (#6195)
1 parent 3969d4d commit 6c48c72

26 files changed

+1776
-0
lines changed

WindowsAppRuntime.sln

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Deployment.WindowsAppRuntim
755755
EndProject
756756
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Deployment.WindowsAppRuntime.Test.SingletonLowerVersion", "test\Deployment\data\WindowsAppRuntime.Test.SingletonLowerVersion\WindowsAppRuntime.Test.SingletonLowerVersion.vcxproj", "{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}"
757757
EndProject
758+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StoragePickersTestApp", "test\TestApps\StoragePickersTestApp\StoragePickersTestApp.vcxproj", "{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}"
759+
EndProject
758760
Global
759761
GlobalSection(SolutionConfigurationPlatforms) = preSolution
760762
Debug|Any CPU = Debug|Any CPU
@@ -2665,6 +2667,30 @@ Global
26652667
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x64.Build.0 = Release|x64
26662668
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x86.ActiveCfg = Release|Win32
26672669
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x86.Build.0 = Release|Win32
2670+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|Any CPU.ActiveCfg = Debug|x64
2671+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|Any CPU.Build.0 = Debug|x64
2672+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|Any CPU.Deploy.0 = Debug|x64
2673+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|ARM64.ActiveCfg = Debug|ARM64
2674+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|ARM64.Build.0 = Debug|ARM64
2675+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|ARM64.Deploy.0 = Debug|ARM64
2676+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|x64.ActiveCfg = Debug|x64
2677+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|x64.Build.0 = Debug|x64
2678+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|x64.Deploy.0 = Debug|x64
2679+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|x86.ActiveCfg = Debug|Win32
2680+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|x86.Build.0 = Debug|Win32
2681+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Debug|x86.Deploy.0 = Debug|Win32
2682+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|Any CPU.ActiveCfg = Release|x64
2683+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|Any CPU.Build.0 = Release|x64
2684+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|Any CPU.Deploy.0 = Release|x64
2685+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|ARM64.ActiveCfg = Release|ARM64
2686+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|ARM64.Build.0 = Release|ARM64
2687+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|ARM64.Deploy.0 = Release|ARM64
2688+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|x64.ActiveCfg = Release|x64
2689+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|x64.Build.0 = Release|x64
2690+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|x64.Deploy.0 = Release|x64
2691+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|x86.ActiveCfg = Release|Win32
2692+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|x86.Build.0 = Release|Win32
2693+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F}.Release|x86.Deploy.0 = Release|Win32
26682694
EndGlobalSection
26692695
GlobalSection(SolutionProperties) = preSolution
26702696
HideSolutionNode = FALSE
@@ -2893,6 +2919,7 @@ Global
28932919
{06AA7FD7-36BE-41AC-9008-56919D1612C6} = {3B706C5C-55E0-4B76-BF59-89E20FE46795}
28942920
{462CF10A-E6B5-4005-8E25-132D1DE589B7} = {2B653A15-2482-40E5-9509-C531E69D0749}
28952921
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D} = {2B653A15-2482-40E5-9509-C531E69D0749}
2922+
{D1310DE7-70EC-4B6A-8A78-2A31BCFA037F} = {AC5FFC80-92FE-4933-BED2-EC5519AC4440}
28962923
EndGlobalSection
28972924
GlobalSection(ExtensibilityGlobals) = postSolution
28982925
SolutionGuid = {4B3D7591-CFEC-4762-9A07-ABE99938FB77}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Application
3+
x:Class="StoragePickersTestApp.App"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:local="using:StoragePickersTestApp">
7+
<Application.Resources>
8+
<ResourceDictionary>
9+
<ResourceDictionary.MergedDictionaries>
10+
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
11+
<!-- Other merged dictionaries here -->
12+
</ResourceDictionary.MergedDictionaries>
13+
<!-- Other app resources here -->
14+
</ResourceDictionary>
15+
</Application.Resources>
16+
</Application>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) Microsoft Corporation and Contributors. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
#include "pch.h"
5+
#include "App.xaml.h"
6+
#include "MainWindow.xaml.h"
7+
8+
#include <winrt/Microsoft.UI.Windowing.h>
9+
#include <winrt/Windows.Graphics.h>
10+
11+
using namespace winrt;
12+
using namespace Microsoft::UI::Xaml;
13+
14+
namespace winrt::StoragePickersTestApp::implementation
15+
{
16+
App::App()
17+
{
18+
#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
19+
UnhandledException([](IInspectable const&, UnhandledExceptionEventArgs const& e)
20+
{
21+
if (IsDebuggerPresent())
22+
{
23+
auto errorMessage = e.Message();
24+
__debugbreak();
25+
}
26+
});
27+
#endif
28+
}
29+
30+
void App::OnLaunched([[maybe_unused]] LaunchActivatedEventArgs const& e)
31+
{
32+
window = make<MainWindow>();
33+
window.as<MainWindow>()->InitializeDefaults();
34+
35+
if (auto appWindow = window.AppWindow())
36+
{
37+
appWindow.Resize(winrt::Windows::Graphics::SizeInt32{ 1800, 1220 });
38+
}
39+
40+
window.Activate();
41+
}
42+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) Microsoft Corporation and Contributors. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
#pragma once
5+
6+
#include "App.xaml.g.h"
7+
8+
namespace winrt::StoragePickersTestApp::implementation
9+
{
10+
struct App : AppT<App>
11+
{
12+
App();
13+
14+
void OnLaunched(Microsoft::UI::Xaml::LaunchActivatedEventArgs const&);
15+
16+
private:
17+
winrt::Microsoft::UI::Xaml::Window window{ nullptr };
18+
};
19+
}
432 Bytes
Loading
5.25 KB
Loading
1.71 KB
Loading
637 Bytes
Loading
283 Bytes
Loading
456 Bytes
Loading

0 commit comments

Comments
 (0)