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>
Lightning Chart 6 and binding to chart dependency properties
Moderator: Queue Moderators
Re: Lightning Chart 6 and binding to chart dependency proper
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
Binding binding = new Binding("Text");
binding.Source = tb;
BindingOperations.SetBinding(title, TitleBase.TextProperty, binding); // where title is the name of ChartTitle
Cheers,
Joost
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Lightning Chart 6 and binding to chart dependency proper
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.
Apologies for the trouble.
LightningChart Support Team, PT
Re: Lightning Chart 6 and binding to chart dependency proper
It also does work when you bind to a static resource!