title: XAML Binding to property
body: <p>I have check box in my XAML+C# Windows Store application. Also I have bool property: <code>WindowsStoreTestApp.SessionData.RememberUser</code> which is public and static.</p>
  
  <p>I want check box's property <code>IsChecked</code> to be consistent (or binded, or mapped) to this bool property.</p>
  
  <p>I tried this:
  XAML</p>
  
  <pre><code>&lt;CheckBox x:Name="chbRemember1"  IsChecked="{Binding Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>C#</p>
  
  <pre><code>chbRemember1.DataContext = SessionData.RememberUser;
  </code></pre>
  
  <p>Code for property:</p>
  
  <pre><code>namespace WindowsStoreTestApp
  {
      public class SessionData
      {
          public static bool RememberUser { get; set; }
      }
  }
  </code></pre>
  
  <p>But it doesn't seem to work. Can you help me?</p>