ui/winui/App.xaml.h

Thu, 28 May 2026 18:07:00 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 28 May 2026 18:07:00 +0200
changeset 1146
35e098a663a7
parent 205
b1ac0dd1d38b
permissions
-rw-r--r--

add warning when ui_init/ui_main are not called from the main thread (Cocoa)

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

#pragma once

#include "App.xaml.g.h"

namespace winrt::winui::implementation
{
    struct App : AppT<App>
    {
        App();

        void OnLaunched(Microsoft::UI::Xaml::LaunchActivatedEventArgs const&);

    private:
        winrt::Microsoft::UI::Xaml::Window window{ nullptr };
    };
}

mercurial