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);
这会有用吗?
上述就是C#学习教程:WPF控件的公共类修饰符分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!
本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。
ctvol管理联系方式QQ:251552304
本文章地址:https://www.ctvol.com/cdevelopment/1043086.html