Windows アプリケーションとクラス ライブラリを作成しています。クラス ライブラリには、「InsertForm.xaml」という名前の 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);