title: WPF bind to a static double var
body: <p>i have these double values:</p>
  
  <pre><code> public partial class Window1 : Window
      {
          public Window1()
          {
              InitializeComponent();
              double num1 = 50.0;
              double num2 = 90.0;
              double num3 = 120.0;
              double num4 = 20.0;
              double num5 = 80.0;
  
          }
      }
  </code></pre>
  
  <p>how do i bind them to xaml?</p>
  
  <pre><code>&lt;vc:Chart.Series&gt;
                  &lt;vc:DataSeries RenderAs="Column" AxisYType="Primary" &gt;
                      &lt;vc:DataSeries.DataPoints&gt;
                          &lt;vc:DataPoint AxisXLabel="Wall-Mart" YValue="{Binding Source={StaticResource num1}}" /&gt;
  
  ....
  </code></pre>
  
  <p>help please</p>