1、新建WPF用户控件;

2、修改XMAL,将UserControl改为Window;

3、并在后台代码中,将类的基类改为Window;

4、d:DesignHeight和d:DesignWidth改为Height和Width。

在类库中添加窗口的办法

在类库中添加窗口的办法 

在类库中添加窗口的办法 

 在类库中添加窗口的办法

相关文章:

  • 2021-05-30
  • 2021-08-28
  • 2021-10-30
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2021-05-29
  • 2022-12-23
  • 2021-06-18
  • 2021-12-14
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案