Added ContextMenu/Flyout animations. Added platform services. Use bitmap cache for all views.
This commit is contained in:
17
Harmonia.UI/Platform/StorageProviderLocator.cs
Normal file
17
Harmonia.UI/Platform/StorageProviderLocator.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Platform.Storage;
|
||||
|
||||
namespace Harmonia.UI.Platform;
|
||||
|
||||
public class StorageProviderLocator : PlatformServiceLocator<IStorageProvider>, IStorageProviderLocator
|
||||
{
|
||||
protected override IStorageProvider? GetFromWindow(Window mainWindow)
|
||||
{
|
||||
return mainWindow.StorageProvider;
|
||||
}
|
||||
|
||||
protected override IStorageProvider? GetFromTopLevel(TopLevel topLevel)
|
||||
{
|
||||
return topLevel.StorageProvider;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user