title: Access controls from other classes
body: <p>I have 3 classes and they are defined as <strong>public partial class</strong>. First class is <strong>MainWindow</strong>, it is used as a main class, which reference to other classes. Here is the short code:</p>
  
  <pre><code>&lt;Frame NavigationUIVisibility="Hidden" Source="LoginWindow.xaml"&gt;
  </code></pre>
  
  <p>Next class is <strong>LoginWindow</strong>, it define WebBrowser control and button, which reference to Last class.</p>
  
  <p>Last class works with WebBrowser, which is in LoginWindow. So if I want to work with WebBrowser, it throws me an error, because that WebBrowser is in <strong>LoginWindow</strong> and i don't have access to it because I´m in Last class. So, is there any way to work with WebBrowser control from another class and have still same data in it? Please, can you write me, how can i do it or post me some link? Thank you for your answers.</p>