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