Scope of controls inside Silverlight XAML

Posted by synergetic on Stack Overflow See other posts from Stack Overflow or by synergetic
Published on 2010-04-22T02:03:40Z Indexed on 2010/04/22 2:13 UTC
Read the original article Hit count: 308

Filed under:
|

I have defined a textbox with x:Name="txtMyTextBox" inside UserControl called MyView. I've noticed that I can do the following:

MyView myView = new MyView();
myView.txtMyTextBox.Text = "something";

Why txtMyTextBox is accessible that way? Is it public or internal field? Can I make it private?

© Stack Overflow or respective owner

Related posts about xaml

Related posts about Silverlight