c# - Public class modifier for WPF control -


i'm creating windows application , class library. class library contains wpf control named "insertform.xaml"

insertform contains textbox named eusername.

i'm using following code show insertform. that's successful. can't access eusername. how set textbox modifiers public?

using system.windows.forms.integration

elementhost host = new elementhost(); iform= new extender.insertform(); host.child = iform; this.controls.add(host); 

would work?

<textbox name="eusername" x:fieldmodifier="public"/> 

Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -