ui/winui/MainWindow.xaml.cpp

branch
newapi
changeset 205
b1ac0dd1d38b
child 211
5d71a36b833b
equal deleted inserted replaced
204:4a258d47f964 205:b1ac0dd1d38b
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 }
22
23 int32_t MainWindow::MyProperty()
24 {
25 throw hresult_not_implemented();
26 }
27
28 void MainWindow::MyProperty(int32_t /* value */)
29 {
30 throw hresult_not_implemented();
31 }
32
33 void MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&)
34 {
35 myButton().Content(box_value(L"Clicked"));
36 }
37 }

mercurial