WPF控件的公共类修饰符

我正在创建Windows应用程序和类库。 类库包含名为“InsertForm.xaml”的WPF控件

InsertForm包含名为eUserName的TextBox。

我正在使用以下代码来显示InsertForm。 那是成功的。 但我无法访问eUserName。 如何将Textbox修饰符设置为public?

using System.Windows.Forms.Integration

 ElementHost host = new ElementHost(); iform= new Extender.InsertForm(); host.Child = iform; this.Controls.Add(host); 

这会有用吗?