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

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

 

 

 

 二。主窗口为Window1.xaml

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

 

 三、App.xaml

 

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

 

 

结果

 

 

posted @ 2019-12-26 19:03  荼离伤花  阅读(3393)  评论(0编辑  收藏  举报