WPF ScrollPager Not Working

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
t-chizzle
Newbie
Newbie
Posts: 13
Joined: Fri Feb 19, 2016 12:00 am

WPF ScrollPager Not Working

Post by t-chizzle » Thu Oct 27, 2016 11:16 am

I am trying to add a scroll pager to a tchart like in the example code (but for WPF) and I get a very strange result

Before I add a scroll pager.
before.PNG
before.PNG (58.68 KiB) Viewed 14436 times
After
result.PNG
result.PNG (12.91 KiB) Viewed 14428 times

Code: Select all

Chart.Series.Clear();
Chart.Header.Text = "Plot";
Chart.Axes.Automatic = true;
Chart.Legend.TopLeftPos = 0;
Chart.Axes.Bottom.Labels.DateTimeFormat = "HH:mm:ss";
Chart.Axes.Bottom.Labels.LabelsAsLocalTime = true;
Chart.Legend.LegendStyle = Steema.TeeChart.WPF.LegendStyles.Series;

FastLine series = new FastLine();
Chart.Series.Add(series);
series.FillSampleValues(1000);
Chart.Tools.Add(_nearestPoint = new NearestPoint());
Chart.Tools.Add(_annotate = new Annotation());

_scrollPager = new ScrollPager();
_scrollPager.Series = series;

_nearestPoint.Series = series;
_nearestPoint.Brush.Color = _scrollPager.PointerHighlightColor;
_nearestPoint.DrawLine = false;
_nearestPoint.Size = 6;
_nearestPoint.Direction = NearestPointDirection.Horizontal;

_annotate.Position = AnnotationPositions.RightTop;
_annotate.Text = "YValue:";
_annotate.Shape.Shadow.Visible = false;
_annotate.Shape.Font.Color = Chart.Header.Font.Color;
_annotate.Shape.Color = _scrollPager.PointerHighlightColor;
_annotate.Shape.Pen.Visible = false;
_annotate.TextAlign = TextAlignment.Center;
Any ideas would be gratefully received!

Tom

t-chizzle
Newbie
Newbie
Posts: 13
Joined: Fri Feb 19, 2016 12:00 am

Re: WPF ScrollPager Not Working

Post by t-chizzle » Thu Oct 27, 2016 2:49 pm

I have put a sample project with my issue here: https://www.dropbox.com/s/voghqgxfbo5hu ... t.zip?dl=0

t-chizzle
Newbie
Newbie
Posts: 13
Joined: Fri Feb 19, 2016 12:00 am

Re: WPF ScrollPager Not Working

Post by t-chizzle » Tue Nov 01, 2016 10:26 am

bump

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: WPF ScrollPager Not Working

Post by Christopher » Wed Nov 02, 2016 11:50 am

Hello,

many apologies for the tardiness of this reply. I have added this issue to our issue-tracker with ticket number id=1672. I will have a look at this in the near future to see if I can suggest a workaround for you.
Best Regards,
Christopher Ireland / 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

t-chizzle
Newbie
Newbie
Posts: 13
Joined: Fri Feb 19, 2016 12:00 am

Re: WPF ScrollPager Not Working

Post by t-chizzle » Mon Nov 14, 2016 9:53 am

Thanks. Any update on this?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: WPF ScrollPager Not Working

Post by Christopher » Mon Nov 14, 2016 11:56 am

t-chizzle wrote:Thanks. Any update on this?
Yes. I've fixed the problem, but was waiting for a colleague to complete a related issue on another platform before responding. Unfortunately the fix was made within a private method, meaning that the only workaround is to completely replace the ScrollPager tool with a new class at runtime. If you're happy with that, do please indicate your email address and license number and I can send the code to you.
Best Regards,
Christopher Ireland / 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

t-chizzle
Newbie
Newbie
Posts: 13
Joined: Fri Feb 19, 2016 12:00 am

Re: WPF ScrollPager Not Working

Post by t-chizzle » Thu Nov 24, 2016 11:30 am


Post Reply