方式一、通过当前控件名获取父级窗体

Window targetWindow = Window.GetWindow(button);

 

方式二、通过当前控件获取父级窗体

Window parentWindow = Window.GetWindow(this);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2021-12-19
  • 2021-07-14
相关资源
相似解决方案