Lightning Chart 6 and binding to chart dependency properties

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
SESruss
Posts: 22
Joined: Wed Mar 12, 2014 6:36 pm

Lightning Chart 6 and binding to chart dependency properties

Post by SESruss » Thu May 08, 2014 12:35 pm

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>

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Re: Lightning Chart 6 and binding to chart dependency proper

Post by jrvdboom » Fri May 09, 2014 12:32 pm

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

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Lightning Chart 6 and binding to chart dependency proper

Post by ArctionPasi » Fri May 09, 2014 2:54 pm

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:
LightningChart Support Team, PT

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Re: Lightning Chart 6 and binding to chart dependency proper

Post by jrvdboom » Mon May 12, 2014 6:24 am

It also does work when you bind to a static resource!

Post Reply