Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Binding issue with Spline Series in XAML
posted

Hi,

I am using a xamDataChart and a SplineSeries. But unfortunately I am not able to bind my data with that.
Could you please see whether it will work with code which I have written?

Thanks

<Style TargetType="{x:Type ig:SplineSeries}" BasedOn="{StaticResource {x:Type ig:SplineSeries}}">
<Setter Property="ItemsSource" Value="{Binding Items}"/>
<Setter Property="ValueMemberPath" Value="SCurveValue" />
<Setter Property="XAxis" Value="{Binding ElementName=XAxis}"/>
<Setter Property="YAxis" Value="{Binding ElementName=YAxis}"/>
</Style>

 <ig:NumericYAxis x:Name="YAxis" MinimumValue="21" MaximumValue="29" ></ig:NumericYAxis>

<Style x:Name="XAxis" TargetType="{x:Type ig:CategoryXAxis}" BasedOn="{StaticResource {x:Type ig:CategoryXAxis}}">
<Setter Property="ItemsSource" Value="{Binding Path=AllSeries[0].Items, Mode=OneWay}" />
<Setter Property="Label" Value="{}" />
</Style>