Ejemplo n.º 1
0
        private static void OnScrollChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            LinesPresenter presenter = (sender as LinesPresenter);

            if (presenter.ScrollOwner != null)
            {
                presenter.ScrollOwner.InvalidateScrollInfo();
            }
            if (presenter.ScrollChanged != null)
            {
                presenter.ScrollChanged(presenter, new EventArgs());
            }
        }
Ejemplo n.º 2
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     linesPresenter = (LinesPresenter)Template.FindName("PART_Presenter", this);
     linesPresenter.ScrollChanged += OnScrolled;
 }
Ejemplo n.º 3
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     linesPresenter = (LinesPresenter)Template.FindName("PART_Presenter", this);
     linesPresenter.ScrollChanged += OnScrolled;
 }