Added ContextMenu/Flyout animations. Added platform services. Use bitmap cache for all views.
This commit is contained in:
17
Harmonia.UI/Platform/ClipboardLocator.cs
Normal file
17
Harmonia.UI/Platform/ClipboardLocator.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user