Window window = null;

            using (FileStream fs = new FileStream("MyWindow.xaml", FileMode.Open, FileAccess.Read))

            {

                window = (Window)System.Windows.Markup.XamlReader.Load(fs);

            }

            System.Windows.Controls.Button btnOk = (System.Windows.Controls.Button)window.FindName("btnOk");

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2021-11-15
  • 2021-09-30
猜你喜欢
  • 2021-07-24
  • 2022-01-25
  • 2022-12-23
  • 2021-12-22
  • 2021-10-08
  • 2022-01-27
  • 2022-12-23
相关资源
相似解决方案