Added ContextMenu/Flyout animations. Added platform services. Use bitmap cache for all views.

This commit is contained in:
2025-03-18 09:31:32 -04:00
parent 7c70eb3814
commit 9214e97100
17 changed files with 649 additions and 169 deletions

View File

@@ -0,0 +1,17 @@
using Avalonia.Controls;
using Avalonia.Input.Platform;
namespace Harmonia.UI.Platform;
public class ClipboardLocator : PlatformServiceLocator<IClipboard>, IClipboardLocator
{
protected override IClipboard? GetFromWindow(Window mainWindow)
{
return mainWindow.Clipboard;
}
protected override IClipboard? GetFromTopLevel(TopLevel topLevel)
{
return topLevel.Clipboard;
}
}