ui/winui/MainWindow.xaml.cpp

Sun, 17 Nov 2024 15:21:50 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 17 Nov 2024 15:21:50 +0100
branch
newapi
changeset 387
80edb1a93f7a
parent 211
5d71a36b833b
permissions
-rw-r--r--

add public function for getting the UiContext UCX mempool

// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.

#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::winui::implementation
{
    MainWindow::MainWindow()
    {
        InitializeComponent();
        //ExtendsContentIntoTitleBar(true);
        //SetTitleBar(AppTitleBar());
    }

    int32_t MainWindow::MyProperty()
    {
        throw hresult_not_implemented();
    }

    void MainWindow::MyProperty(int32_t /* value */)
    {
        throw hresult_not_implemented();
    }

    void MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&)
    {
        
    }
}

mercurial