Пример #1
0
        private void OnClosedPrivate(object sender, UI.Xaml.WindowEventArgs args)
        {
            OnClosed(sender, args);

            if (_windowIcon != IntPtr.Zero)
            {
                DestroyIcon(_windowIcon);
                _windowIcon = IntPtr.Zero;
            }
        }
Пример #2
0
 protected virtual void OnClosed(object sender, UI.Xaml.WindowEventArgs args)
 {
     MauiWinUIApplication.Current.Services?.InvokeLifecycleEvents <WindowsLifecycle.OnClosed>(del => del(this, args));
 }