I'm creating Windows application and Class library. Class library contains WPF control named "InsertForm.xaml"
InsertForm contains TextBox named eUserName.
I'm using the following code to show InsertForm. That's successful. But I can't access eUserName. How to set Textbox modifiers to public?
using System.Windows.Forms.Integration
ElementHost host = new ElementHost();
iform= new Extender.InsertForm();
host.Child = iform;
this.Controls.Add(host);
这会有用吗?
<TextBox Name="eUserName" x:FieldModifier="public"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.