Я пытаюсь добавить прокрутки пейджера в TChart, как в примере кода (но для WPF), и я получаю очень странный результатДобавление ScrollPager инструмента к TeeChart сжимает всю таблицу
Перед тем, как добавить прокрутка пейджера.
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(_scrollPager = new ScrollPager());
Chart.Tools.Add(_nearestPoint = new NearestPoint());
Chart.Tools.Add(_annotate = new Annotation());
_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;
Любые идеи будут с благодарностью приняты!
Полный образец кода находится здесь: https://www.dropbox.com/s/voghqgxfbo5hup4/ScrollPagerTest.zip?dl=0 – SlimCheney