title: Accessing mainwindow.xaml.cs methods from another class
body: <p>hi i am relatively new at Wpf application</p>
  
  <p>i want to know  that can i create a object of <code>mainwindow.xaml.cs</code>
  in some other class<br>
  And then using that object  excess the user defined methods  in <code>mainwindow.xaml.cs</code></p>
  
  <p>i am trying to something like this 
  it creates the object of mainwindow but can't access the method 
  the method which i am trying to access is public defined</p>
  
  <pre><code>MainWindow window = new Mainwindow();
  window.point_to_screen();
  </code></pre>
  
  <p>it gives this error</p>
  
  <blockquote>
    <p>Error  2   The type name 'point_to_screen' does not exist in the type 'System.Windows.Window'</p>
  </blockquote>