26
我正在创建Windows应用程序和类库。类库包含名为“InsertForm.xaml”的WPF控件WPF控件的公共类修饰符
InsertForm包含名为eUserName的TextBox。
我正在使用下面的代码来显示InsertForm。这很成功。但我无法访问eUserName。如何将文本框修饰符设置为公共?
using System.Windows.Forms.Integration
ElementHost host = new ElementHost();
iform= new Extender.InsertForm();
host.Child = iform;
this.Controls.Add(host);
谢谢。这非常有帮助和容易 – ebattulga 2010-01-19 14:04:10
谢谢你的家伙。它确实帮助我。 – 2010-04-10 20:47:22