diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ddadb70..0000000 --- a/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -.vs -Debug -Generated Files -packages - -x64 -obj -*.cache \ No newline at end of file diff --git a/App1 (Package)/App1 (Package).wapproj b/App1 (Package)/App1 (Package).wapproj deleted file mode 100644 index 18d060f..0000000 --- a/App1 (Package)/App1 (Package).wapproj +++ /dev/null @@ -1,74 +0,0 @@ - - - - 15.0 - - - - Debug - x86 - - - Release - x86 - - - Debug - x64 - - - Release - x64 - - - Debug - arm64 - - - Release - arm64 - - - - $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\ - NativeOnly - NativeOnly - - - - 41ec5a1b-21e5-4b6c-a86d-b0554ee0d18a - 10.0.19041.0 - 10.0.17763.0 - en-US - false - ..\App1\App1.vcxproj - - - - Designer - - - - - - - - - - - - - - True - - - - - build - - - build - - - - \ No newline at end of file diff --git a/App1 (Package)/App1 (Package).wapproj.user b/App1 (Package)/App1 (Package).wapproj.user deleted file mode 100644 index 88a5509..0000000 --- a/App1 (Package)/App1 (Package).wapproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/App1 (Package)/Images/LockScreenLogo.scale-200.png b/App1 (Package)/Images/LockScreenLogo.scale-200.png deleted file mode 100644 index 735f57a..0000000 Binary files a/App1 (Package)/Images/LockScreenLogo.scale-200.png and /dev/null differ diff --git a/App1 (Package)/Images/SplashScreen.scale-200.png b/App1 (Package)/Images/SplashScreen.scale-200.png deleted file mode 100644 index 023e7f1..0000000 Binary files a/App1 (Package)/Images/SplashScreen.scale-200.png and /dev/null differ diff --git a/App1 (Package)/Images/Square150x150Logo.scale-200.png b/App1 (Package)/Images/Square150x150Logo.scale-200.png deleted file mode 100644 index af49fec..0000000 Binary files a/App1 (Package)/Images/Square150x150Logo.scale-200.png and /dev/null differ diff --git a/App1 (Package)/Images/Square44x44Logo.scale-200.png b/App1 (Package)/Images/Square44x44Logo.scale-200.png deleted file mode 100644 index ce342a2..0000000 Binary files a/App1 (Package)/Images/Square44x44Logo.scale-200.png and /dev/null differ diff --git a/App1 (Package)/Images/Square44x44Logo.targetsize-24_altform-unplated.png b/App1 (Package)/Images/Square44x44Logo.targetsize-24_altform-unplated.png deleted file mode 100644 index f6c02ce..0000000 Binary files a/App1 (Package)/Images/Square44x44Logo.targetsize-24_altform-unplated.png and /dev/null differ diff --git a/App1 (Package)/Images/StoreLogo.png b/App1 (Package)/Images/StoreLogo.png deleted file mode 100644 index 7385b56..0000000 Binary files a/App1 (Package)/Images/StoreLogo.png and /dev/null differ diff --git a/App1 (Package)/Images/Wide310x150Logo.scale-200.png b/App1 (Package)/Images/Wide310x150Logo.scale-200.png deleted file mode 100644 index 288995b..0000000 Binary files a/App1 (Package)/Images/Wide310x150Logo.scale-200.png and /dev/null differ diff --git a/App1 (Package)/Package.appxmanifest b/App1 (Package)/Package.appxmanifest deleted file mode 100644 index 57244be..0000000 --- a/App1 (Package)/Package.appxmanifest +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - App1 (Package) - admin - Images\StoreLogo.png - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/App1.sln b/App1.sln deleted file mode 100644 index 19d910b..0000000 --- a/App1.sln +++ /dev/null @@ -1,57 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31313.381 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "App1 (Package)", "App1 (Package)\App1 (Package).wapproj", "{41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "App1", "App1\App1.vcxproj", "{B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|arm64 = Debug|arm64 - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|arm64 = Release|arm64 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|arm64.ActiveCfg = Debug|arm64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|arm64.Build.0 = Debug|arm64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|arm64.Deploy.0 = Debug|arm64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|x64.ActiveCfg = Debug|x64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|x64.Build.0 = Debug|x64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|x64.Deploy.0 = Debug|x64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|x86.ActiveCfg = Debug|x86 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|x86.Build.0 = Debug|x86 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Debug|x86.Deploy.0 = Debug|x86 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|arm64.ActiveCfg = Release|arm64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|arm64.Build.0 = Release|arm64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|arm64.Deploy.0 = Release|arm64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|x64.ActiveCfg = Release|x64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|x64.Build.0 = Release|x64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|x64.Deploy.0 = Release|x64 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|x86.ActiveCfg = Release|x86 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|x86.Build.0 = Release|x86 - {41EC5A1B-21E5-4B6C-A86D-B0554EE0D18A}.Release|x86.Deploy.0 = Release|x86 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Debug|arm64.ActiveCfg = Debug|arm64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Debug|arm64.Build.0 = Debug|arm64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Debug|x64.ActiveCfg = Debug|x64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Debug|x64.Build.0 = Debug|x64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Debug|x86.ActiveCfg = Debug|Win32 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Debug|x86.Build.0 = Debug|Win32 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Release|arm64.ActiveCfg = Release|arm64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Release|arm64.Build.0 = Release|arm64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Release|x64.ActiveCfg = Release|x64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Release|x64.Build.0 = Release|x64 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Release|x86.ActiveCfg = Release|Win32 - {B10EAF16-5BDA-4E26-8CB1-C43D0CEA6B6A}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {13A69760-03DB-4827-8DA7-AABC4EF6FABD} - EndGlobalSection -EndGlobal diff --git a/App1/App.idl b/App1/App.idl deleted file mode 100644 index 70c7577..0000000 --- a/App1/App.idl +++ /dev/null @@ -1,3 +0,0 @@ -namespace App1 -{ -} diff --git a/App1/App.xaml b/App1/App.xaml deleted file mode 100644 index c9404c7..0000000 --- a/App1/App.xaml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - diff --git a/App1/App.xaml.cpp b/App1/App.xaml.cpp deleted file mode 100644 index c9cef89..0000000 --- a/App1/App.xaml.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "pch.h" - -#include "App.xaml.h" -#include "MainWindow.xaml.h" - -using namespace winrt; -using namespace Windows::Foundation; -using namespace Microsoft::UI::Xaml; -using namespace Microsoft::UI::Xaml::Controls; -using namespace Microsoft::UI::Xaml::Navigation; -using namespace App1; -using namespace App1::implementation; - -// To learn more about WinUI, the WinUI project structure, -// and more about our project templates, see: http://aka.ms/winui-project-info. - -/// -/// Initializes the singleton application object. This is the first line of authored code -/// executed, and as such is the logical equivalent of main() or WinMain(). -/// -App::App() -{ - InitializeComponent(); - -#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION - UnhandledException([this](IInspectable const&, UnhandledExceptionEventArgs const& e) - { - if (IsDebuggerPresent()) - { - auto errorMessage = e.Message(); - __debugbreak(); - } - }); -#endif -} - -/// -/// Invoked when the application is launched normally by the end user. Other entry points -/// will be used such as when the application is launched to open a specific file. -/// -/// Details about the launch request and process. -void App::OnLaunched(LaunchActivatedEventArgs const&) -{ - window = make(); - window.Activate(); -} \ No newline at end of file diff --git a/App1/App.xaml.h b/App1/App.xaml.h deleted file mode 100644 index 8559b0c..0000000 --- a/App1/App.xaml.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#pragma push_macro("GetCurrentTime") -#undef GetCurrentTime - -#include "App.xaml.g.h" - -#pragma pop_macro("GetCurrentTime") - -namespace winrt::App1::implementation -{ - struct App : AppT - { - App(); - - void OnLaunched(Microsoft::UI::Xaml::LaunchActivatedEventArgs const&); - void OnSuspending(IInspectable const&, Windows::ApplicationModel::SuspendingEventArgs const&); - - private: - winrt::Microsoft::UI::Xaml::Window window{ nullptr }; - }; -} diff --git a/App1/App1.vcxproj b/App1/App1.vcxproj deleted file mode 100644 index 4db5cef..0000000 --- a/App1/App1.vcxproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - true - true - true - {b10eaf16-5bda-4e26-8cb1-c43d0cea6b6a} - App1 - App1 - - $(RootNamespace) - en-US - 16.0 - false - false - Windows Store - 10.0 - 10.0 - 10.0.17763.0 - - - - - Debug - Win32 - - - Debug - x64 - - - Debug - arm64 - - - Release - Win32 - - - Release - x64 - - - Release - arm64 - - - - Application - v142 - Unicode - true - - - true - true - - - false - true - false - - - - - - - - - - - - - - Use - pch.h - $(IntDir)pch.pch - Level4 - %(AdditionalOptions) /bigobj - - - - - _DEBUG;%(PreprocessorDefinitions) - - - - - NDEBUG;%(PreprocessorDefinitions) - - - true - true - - - - - - - - - App.xaml - - - MainWindow.xaml - - - - - - - - - - Create - - - App.xaml - - - MainWindow.xaml - - - - - - - Code - App.xaml - - - Code - MainWindow.xaml - - - - - - - false - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - \ No newline at end of file diff --git a/App1/App1.vcxproj.filters b/App1/App1.vcxproj.filters deleted file mode 100644 index 49ce7da..0000000 --- a/App1/App1.vcxproj.filters +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - {e48dc53e-40b1-40cb-970a-f89935452892} - - - - - - - - - - - - - \ No newline at end of file diff --git a/App1/App1.vcxproj.user b/App1/App1.vcxproj.user deleted file mode 100644 index 966b4ff..0000000 --- a/App1/App1.vcxproj.user +++ /dev/null @@ -1,6 +0,0 @@ - - - - true - - \ No newline at end of file diff --git a/App1/App1_TemporaryKey.pfx b/App1/App1_TemporaryKey.pfx deleted file mode 100644 index 3c2c91d..0000000 Binary files a/App1/App1_TemporaryKey.pfx and /dev/null differ diff --git a/App1/MainWindow.idl b/App1/MainWindow.idl deleted file mode 100644 index 2e13e4a..0000000 --- a/App1/MainWindow.idl +++ /dev/null @@ -1,16 +0,0 @@ -namespace App1 -{ - [default_interface] - runtimeclass MainWindow : Microsoft.UI.Xaml.Window - { - MainWindow(); - Int32 MyProperty; - } - - - runtimeclass Runtime - { - Runtime(); - Int32 MyProperty; - } -} diff --git a/App1/MainWindow.xaml b/App1/MainWindow.xaml deleted file mode 100644 index 78c6eab..0000000 --- a/App1/MainWindow.xaml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - diff --git a/App1/MainWindow.xaml.cpp b/App1/MainWindow.xaml.cpp deleted file mode 100644 index 60f61d1..0000000 --- a/App1/MainWindow.xaml.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include "pch.h" -#include "MainWindow.xaml.h" -#if __has_include("MainWindow.g.cpp") -#include "MainWindow.g.cpp" -#endif - -using namespace winrt; -using namespace Microsoft::UI::Xaml; - -// To learn more about WinUI, the WinUI project structure, -// and more about our project templates, see: http://aka.ms/winui-project-info. - -namespace winrt::App1::implementation -{ - using namespace std::literals; - MainWindow::MainWindow() - { - InitializeComponent(); - } - - int32_t MainWindow::MyProperty() - { - throw hresult_not_implemented(); - } - - void MainWindow::MyProperty(int32_t /* value */) - { - throw hresult_not_implemented(); - } - - - Windows::Foundation::IAsyncOperation Test() { - - // co_await 1ms; - Runtime runtime; - - co_return runtime; - } - - Windows::Foundation::IAsyncAction MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&) - { - co_await resume_background(); - - for (int i = 0; i < 10000; ++i) { - - co_await Test(); - } - } -} diff --git a/App1/MainWindow.xaml.h b/App1/MainWindow.xaml.h deleted file mode 100644 index a59e278..0000000 --- a/App1/MainWindow.xaml.h +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#pragma push_macro("GetCurrentTime") -#undef GetCurrentTime - -#include "MainWindow.g.h" - -#pragma pop_macro("GetCurrentTime") - -namespace winrt::App1::implementation -{ - struct MainWindow : MainWindowT - { - MainWindow(); - - int32_t MyProperty(); - void MyProperty(int32_t value); - - Windows::Foundation::IAsyncAction myButton_Click(Windows::Foundation::IInspectable const& sender, Microsoft::UI::Xaml::RoutedEventArgs const& args); - }; -} - -namespace winrt::App1::factory_implementation -{ - struct MainWindow : MainWindowT - { - }; -} diff --git a/App1/PropertySheet.props b/App1/PropertySheet.props deleted file mode 100644 index f37bc7f..0000000 --- a/App1/PropertySheet.props +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/App1/Runtime.cpp b/App1/Runtime.cpp deleted file mode 100644 index af780fb..0000000 --- a/App1/Runtime.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "pch.h" -#include "Runtime.h" -#include "Runtime.g.cpp" - - - -namespace winrt::App1::implementation -{ - int32_t Runtime::MyProperty() - { - throw hresult_not_implemented(); - } - void Runtime::MyProperty(int32_t value) - { - throw hresult_not_implemented(); - } -} diff --git a/App1/Runtime.h b/App1/Runtime.h deleted file mode 100644 index cfc9325..0000000 --- a/App1/Runtime.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include "Runtime.g.h" - - - -namespace winrt::App1::implementation -{ - struct Runtime : RuntimeT - { - Runtime() = default; - - int32_t MyProperty(); - void MyProperty(int32_t value); - }; -} -namespace winrt::App1::factory_implementation -{ - struct Runtime : RuntimeT - { - }; -} diff --git a/App1/app.manifest b/App1/app.manifest deleted file mode 100644 index ab25dab..0000000 --- a/App1/app.manifest +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - true/PM - PerMonitorV2, PerMonitor - - - diff --git a/App1/packages.config b/App1/packages.config deleted file mode 100644 index 85b25fd..0000000 --- a/App1/packages.config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/App1/pch.cpp b/App1/pch.cpp deleted file mode 100644 index bcb5590..0000000 --- a/App1/pch.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "pch.h" diff --git a/App1/pch.h b/App1/pch.h deleted file mode 100644 index 3941936..0000000 --- a/App1/pch.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once -#include -#include -#include -#include - -// Undefine GetCurrentTime macro to prevent -// conflict with Storyboard::GetCurrentTime -#undef GetCurrentTime - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include diff --git a/App1/readme.txt b/App1/readme.txt deleted file mode 100644 index 5f9cc35..0000000 --- a/App1/readme.txt +++ /dev/null @@ -1,27 +0,0 @@ -======================================================================== - App1 Project Overview -======================================================================== - -This project demonstrates how to get started writing WinUI3 apps directly -with standard C++, using the Project Reunion and C++/WinRT packages and -XAML compiler support to generate implementation headers from interface -(IDL) files. These headers can then be used to implement the local -Windows Runtime classes referenced in the app's XAML pages. - -Steps: -1. Create an interface (IDL) file to define any local Windows Runtime - classes referenced in the app's XAML pages. -2. Build the project once to generate implementation templates under - the "Generated Files" folder, as well as skeleton class definitions - under "Generated Files\sources". -3. Use the skeleton class definitions for reference to implement your - Windows Runtime classes. - -======================================================================== -Learn more about Project Reunion here: -https://docs.microsoft.com/en-us/windows/apps/project-reunion/ -Learn more about WinUI3 here: -https://docs.microsoft.com/en-us/windows/apps/winui/winui3/ -Learn more about C++/WinRT here: -http://aka.ms/cppwinrt/ -======================================================================== diff --git a/README.md b/README.md index 9841204..504e096 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,2 @@ # winui_stack_overflow winui stack overflow - - -https://github.com/microsoft/microsoft-ui-xaml/issues/5078