【发布时间】:2010-01-19 13:43:43
【问题描述】:
我正在创建 Windows 应用程序和类库。类库包含名为“InsertForm.xaml”的 WPF 控件
InsertForm 包含名为 eUserName 的文本框。
我正在使用以下代码来显示 InsertForm。那是成功的。但我无法访问 eUserName。如何将文本框修饰符设置为公开?
using System.Windows.Forms.Integration
ElementHost host = new ElementHost();
iform= new Extender.InsertForm();
host.Child = iform;
this.Controls.Add(host);
【问题讨论】:
标签: c# wpf windowsformsintegration