title: Lack of knowledge to initializing viewmodel
body: <p>Okay. So what I need to do is to initialize a <code>ViewModel</code> using a constructor. The problem is I can't create the constructor due lack of knowledge. I'm new to <code>MVVM</code> (or c# in general for that matter) and had to get some help to implement this code:</p>
  
  <pre><code>public class ViewModel
  {
    private static ViewModel instance = new ViewModel();
  
    public static ViewModel Instance
    {
       get
       {
          return instance;
       }
    }
  }
  </code></pre>
  
  <p>However, I fail to create a constructor to place this code.</p>
  
  <pre><code>DataContext = ViewModel.Instance
  </code></pre>
  
  <p>It is meant to go into two different pages to pass a value between <code>TextBoxes</code>.
  I'm also confused as to whether I should put the <code>ViewModel</code> in both the main window and the page or in just one of the two.</p>
  
  <p>So, anyone can help?</p>