I'm trying to bind some properties in code instead of setting them on various locations. For some properties it works, for others it doesn't.
E.g. I can bind ChartBackground with
Code: Select all
_chart.SetBinding(LightningChartUltimate.ChartBackgroundProperty, new Binding { Converter = new Converters.ColorToFillConverter(), Path = new PropertyPath("BackgroundColor") });
Code: Select all
_chart.SetBinding(ViewXY.GraphBackgroundProperty, new Binding { Converter = new Converters.ColorToFillConverter(), Path = new PropertyPath("GraphBackgroundColor") });
_chart.SetBinding(ViewXY.GraphBorderColorProperty, "GraphBackgroundColor");
Best regards,
Frank