[英]How to access windows form controls from WPF control?
I need to show a control in a form according to an event in a WPF control. 我需要根据WPF控件中的事件以表格形式显示控件。
TheBoard theBoard = new TheBoard();
theBoard.keyboard.Visible = true;
even if I write: 即使我写:
theBoard.Close();
nothing will happen, if anybody can give me a solution please. 如果有人可以给我解决方案,什么都不会发生。
You could raise an event from WPF control and subscribe that event in Windows form control. 您可以从WPF控件引发一个事件,然后在Windows窗体控件中订阅该事件。 Here is a link which could give you the way to go. 这是一个链接,可以为您提供帮助。
http://www.a2zdotnet.com/View.aspx?Id=79#.T46J5bN-WUI http://www.a2zdotnet.com/View.aspx?Id=79#.T46J5bN-WUI
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.