Avalonia-获取当前应用的主窗体

  if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desk)
  {
     Window mainWindow =desk.MainWindow;
  }
posted @ 2024-09-03 11:06  ꧁执笔小白꧂  阅读(73)  评论(0编辑  收藏  举报