UNIXworkcode

1 // Copyright (c) Microsoft Corporation and Contributors. 2 // Licensed under the MIT License. 3 4 #include "pch.h" 5 #include "MainWindow.xaml.h" 6 #if __has_include("MainWindow.g.cpp") 7 #include "MainWindow.g.cpp" 8 #endif 9 10 using namespace winrt; 11 using namespace Microsoft::UI::Xaml; 12 13 // To learn more about WinUI, the WinUI project structure, 14 // and more about our project templates, see: http://aka.ms/winui-project-info. 15 16 namespace winrt::winui::implementation 17 { 18 MainWindow::MainWindow() 19 { 20 InitializeComponent(); 21 //ExtendsContentIntoTitleBar(true); 22 //SetTitleBar(AppTitleBar()); 23 } 24 25 int32_t MainWindow::MyProperty() 26 { 27 throw hresult_not_implemented(); 28 } 29 30 void MainWindow::MyProperty(int32_t /* value */) 31 { 32 throw hresult_not_implemented(); 33 } 34 35 void MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&) 36 { 37 38 } 39 } 40