у меня есть эти двойные значения:WPF привязка к статическому двойной вар
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;
}
}
как я связать их с XAML?
<vc:Chart.Series>
<vc:DataSeries RenderAs="Column" AxisYType="Primary" >
<vc:DataSeries.DataPoints>
<vc:DataPoint AxisXLabel="Wall-Mart" YValue="{Binding Source={StaticResource num1}}" />
....
помощь, пожалуйста
пос надуть? http://stackoverflow.com/questions/1481130/wpf-binding-to-local-variable – dsolimano