DragAndDrop core

This commit is contained in:
FrigaT
2026-01-18 16:33:35 +03:00
parent 9ea82af329
commit 79bdd8bc62
229 changed files with 21214 additions and 2494 deletions

View File

@@ -0,0 +1,18 @@
using Microsoft.UI.Xaml;
namespace Lattice.Themes;
public static class WindowTracker
{
private static readonly List<Window> _windows = new();
public static IReadOnlyList<Window> Windows => _windows;
public static void Register(Window window)
{
if (!_windows.Contains(window))
_windows.Add(window);
window.Closed += (_, _) => _windows.Remove(window);
}
}