Fri, 15 Nov 2024 21:23:16 +0100
start UiObject ref with 0 and increases ref with ui_show
// 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 }; }; }