在WPF中使用winform控件

后台代码

WindowsFormsHost host = new WindowsFormsHost();
System.Windows.Forms.PictureBox picture = new System.Windows.Forms.PictureBox();
host.Child = picture;
this.grid.Children.Add(host);

posted @ 2021-10-27 10:43  奇迹之耀  阅读(63)  评论(0编辑  收藏  举报