Is there a way to bind the size of a marker on a PointSeries to a XamNumericSlider control or similar control. I'd also like to bind the color of a LineSeries and PointSeries to a color picker control.
Thanks for the reply, but a PointSeries does not have a MarkerSize property. So, should I bind the height and width of the MarkerStyle property to the slider's Value property? Or, is there a better way?
Hello dougsimpson,
I have been looking into your requirements and I created a small sample for you in order to demonstrate a sample approach to achieve this. In my sample I bound MarkerSize property of the points to the value of the slider as follows:
<igCA:Series.Marker>
<igCA:Marker MarkerSize="{Binding ElementName= slider, Path=Value}"/>
</igCA:Series.Marker>
also I handle the SelectedColorChanged event of the xamColorPicker to change the series color:
ScatterChart2D.Series[0].Fill = new SolidColorBrush(color.SelectedColor.Value);
For additional reference please check the attached sample.
If you need any further assistance on this feel free to ask.