private void OnClosedPrivate(object sender, UI.Xaml.WindowEventArgs args) { OnClosed(sender, args); if (_windowIcon != IntPtr.Zero) { DestroyIcon(_windowIcon); _windowIcon = IntPtr.Zero; } }
protected virtual void OnClosed(object sender, UI.Xaml.WindowEventArgs args) { MauiWinUIApplication.Current.Services?.InvokeLifecycleEvents <WindowsLifecycle.OnClosed>(del => del(this, args)); }