Hi steema!
I have an annoying bug with rotation of WPF TeeChart. It seems that you don't capture/release mouse when rotation starts/ends. Rotation will be stopped and mouse events won't be handled if the mouse is out of TeeChart borders.
WPF TeeChart Rotation Bug
Re: WPF TeeChart Rotation Bug
Hello neurosoft,
I can not reproduce your problem using next code:
Could you tells us if using my previous code your problem appears? If appears please could you tell us how can reproduce it? If it doesn't appear could you modify my code, because we can reproduce your problem here?
Thanks,
I can not reproduce your problem using next code:
Code: Select all
private void InitializeChart()
{
Steema.TeeChart.WPF.Styles.Line line = new Steema.TeeChart.WPF.Styles.Line(tChart1.Chart);
line.FillSampleValues(40);
tChart1.Legend.Visible = false;
Steema.TeeChart.WPF.Tools.Rotate rotationTool = new Steema.TeeChart.WPF.Tools.Rotate(tChart1.Chart);
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: WPF TeeChart Rotation Bug
Yes, the problem appears with your code too. But to reproduce it you should move mouse with pressed button out of TChart (but not out of Window) and then release button.
Try to use the following xaml:
Mouse movement should be like this:
Try to use the following xaml:
Code: Select all
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tc="clr-namespace:Steema.TeeChart.WPF;assembly=TeeChart.WPF"
Width="600" Height="400"
Title="MainWindow">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<tc:TChart Name="tChart1"/>
</Grid>
</Window>
Re: WPF TeeChart Rotation Bug
Hello neurosfot,
Thanks for your indication. I have added your request in bug list report with number [TW16016672]. We will try to fix it to upcoming maintenance releases of TeeChartWPF.
Thanks,
Thanks for your indication. I have added your request in bug list report with number [TW16016672]. We will try to fix it to upcoming maintenance releases of TeeChartWPF.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |