Scrollbars doesn't appears

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Scrollbars doesn't appears

Post by vifani » Thu Jun 12, 2014 1:19 pm

Hi,

I Have problem showing the horizontal scrollbar.

I wrote this code but nothing happens.

is there something wrong?

ScrollBar sb = new ScrollBar(chart);
sb.Minimum = 0;
//sb.Maximum = (UInt64)SampleCount - 1;
//sb.Scroll += new ScrollBar.ScrollHandler(sb_Scroll);
sb.Alignment = ScrollBarAlignment.BelowGraph;
sb.LargeChange = (UInt64)chart.ViewXY.XAxes[0].Maximum;
sb.Offset = new PointIntXY(sb, 100, 135);

chart.ScrollBars.Add(sb);

Regards

a.p.

ArctionJari

Re: Scrollbars doesn't appears

Post by ArctionJari » Fri Jun 13, 2014 3:01 pm

Hi. Set chart's ViewXY.AxisLayout.AutoAdjustMargins to false. This should fix your problem.

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: Scrollbars doesn't appears

Post by vifani » Wed Jun 25, 2014 6:47 am

Thank you. It works.

Post Reply