Avalonia-获取当前应用的主窗体
if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desk)
{
Window mainWindow =desk.MainWindow;
}
本文来自博客园,作者:꧁执笔小白꧂,转载请注明原文链接:https://www.cnblogs.com/qq2806933146xiaobai/p/18394167