WPF bind to a static double var
- by devin250
hi,
i have these double values:
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;
}
}
how do i bind them to xaml?
<vc:Chart.Series>
<vc:DataSeries RenderAs="Column" AxisYType="Primary" >
<vc:DataSeries.DataPoints>
<vc:DataPoint AxisXLabel="Wall-Mart" YValue="{Binding Source={StaticResource num1}}" />
....
help please