开发者

Public class modifier for WPF control

开发者 https://www.devze.com 2022-12-17 00:51 出处:网络
I\'m creating Windows application and Class library. Class library contains WPF control named \"InsertForm.xaml\"

I'm creating Windows application and Class library. Class library contains WPF control named "InsertForm.xaml"

InsertForm contains TextBox na开发者_如何学Pythonmed 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);


Would this work?

<TextBox Name="eUserName" x:FieldModifier="public"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号