一。创建一个新的窗口Document.xaml

wpf 主窗口创建多个子窗口并通过主程序进行管理

 

 wpf 主窗口创建多个子窗口并通过主程序进行管理

 

 二。主窗口为Window1.xaml

//click打开Document创建对象,并将Document窗口对象加到List<Document>中,Click1可以修改所有对象的内容

wpf 主窗口创建多个子窗口并通过主程序进行管理

 

 三、App.xaml

wpf 主窗口创建多个子窗口并通过主程序进行管理

 

 app,xaml.cs中创建保存Document对象的List

wpf 主窗口创建多个子窗口并通过主程序进行管理

 

 

结果

wpf 主窗口创建多个子窗口并通过主程序进行管理

 

 wpf 主窗口创建多个子窗口并通过主程序进行管理

相关文章:

  • 2022-02-26
  • 2021-08-26
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2021-04-10
  • 2022-02-15
  • 2021-07-07
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案