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
530
Marker size
posted

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.

Parents
  • 17559
    posted

    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.

    BindXamChartProperties.zip
Reply Children