Page 1 of 1

WPF TeeChart Rotation Bug

Posted: Mon Jul 29, 2013 5:13 am
by 15665989
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.

Re: WPF TeeChart Rotation Bug

Posted: Mon Jul 29, 2013 2:34 pm
by 10050769
Hello neurosoft,

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); 
          
        }
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,

Re: WPF TeeChart Rotation Bug

Posted: Tue Jul 30, 2013 7:31 am
by 15665989
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:

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>
Mouse movement should be like this:
TChartRotation.jpg
TChartRotation.jpg (119.23 KiB) Viewed 3450 times

Re: WPF TeeChart Rotation Bug

Posted: Tue Jul 30, 2013 3:00 pm
by 10050769
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,