1
0
Fork 0
mirror of https://github.com/oMaN-Rod/nxDumpFuse.git synced 2024-12-08 01:32:07 +00:00
nxDumpFuse/src/nxDumpFuse/MainWindowProvider.cs
2021-11-02 08:19:59 -04:00

17 lines
435 B
C#

using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using nxDumpFuse.ViewModels.Interfaces;
namespace nxDumpFuse
{
public class MainWindowProvider : IMainWindowProvider
{
public Window GetMainWindow()
{
var lifetime = (IClassicDesktopStyleApplicationLifetime) Application.Current.ApplicationLifetime;
return lifetime.MainWindow;
}
}
}