title: How to bind WPF TextBox to a propperty that is the member of application main window
body: <p>I have a private field</p>
  
  <pre><code>private static Double myValue;
  </code></pre>
  
  <p>in the application MainWindow class. And there (in the MainWindow class) I defined a property</p>
  
  <pre><code>public static Double MytValue
  {
      get { return myValue; }
  }
  </code></pre>
  
  <p>In the structure of the MainWindow class I have a TextBox. I'm in need of binding it to the MytValue property. In XAML I write:</p>
  
  <pre><code>&lt;TextBox Name="tbxMyValue" Grid.Row="1" Grid.Column="2" TextAlignment="Center"
           Text="{Binding Path=MyValue}" Width="Auto" Margin="10,0,10,15" IsEnabled="True" /&gt;
  </code></pre>
  
  <p>But it has no effect. I see nothing in the TextBox while myValue variable has a value. Why? Please help me.</p>