Page 1 of 1

Lightning Chart 6 and binding to chart dependency properties

Posted: Thu May 08, 2014 12:35 pm
by SESruss
Is the example below something that can not be done in the latest release?

<Window x:Class="SES.Chart.WPFSampleApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lcu="http://www.arction.com/schemas/"
Title="MainWindow" Height="350" Width="525" Name="uc">

<Grid >
<StackPanel>
<lcu:LightningChartUltimate>

<lcu:LightningChartUltimate.Title >
<lcu:ChartTitle Text="{Binding ElementName=tb, Path=Text}"/>
</lcu:LightningChartUltimate.Title>

</lcu:LightningChartUltimate>

<TextBox x:Name="tb" Text="TestTitle"/>
</StackPanel>

</Grid>
</Window>

Re: Lightning Chart 6 and binding to chart dependency proper

Posted: Fri May 09, 2014 12:32 pm
by jrvdboom
I'm having the same problem. It seems to work only when I create the binding in code:

Binding binding = new Binding("Text");
binding.Source = tb;
BindingOperations.SetBinding(title, TitleBase.TextProperty, binding); // where title is the name of ChartTitle

Cheers,
Joost

Re: Lightning Chart 6 and binding to chart dependency proper

Posted: Fri May 09, 2014 2:54 pm
by ArctionPasi
There's a problem in chart title's DP binding. We currently resolving the problem and will fix to next maintenance release.

Apologies for the trouble. :oops:

Re: Lightning Chart 6 and binding to chart dependency proper

Posted: Mon May 12, 2014 6:24 am
by jrvdboom
It also does work when you bind to a static resource!