WPF TeeChart Rotation Bug

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 10
Joined: Fri May 17, 2013 12:00 am

WPF TeeChart Rotation Bug

Post by neurosoft » Mon Jul 29, 2013 5:13 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: WPF TeeChart Rotation Bug

Post by Sandra » Mon Jul 29, 2013 2:34 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

neurosoft
Newbie
Newbie
Posts: 10
Joined: Fri May 17, 2013 12:00 am

Re: WPF TeeChart Rotation Bug

Post by neurosoft » Tue Jul 30, 2013 7:31 am

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 7667 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: WPF TeeChart Rotation Bug

Post by Sandra » Tue Jul 30, 2013 3:00 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply