예제 #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());
            }
        }
예제 #2
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     linesPresenter = (LinesPresenter)Template.FindName("PART_Presenter", this);
     linesPresenter.ScrollChanged += OnScrolled;
 }
예제 #3
0
파일: PadEditor.cs 프로젝트: faboo/Agent
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     linesPresenter = (LinesPresenter)Template.FindName("PART_Presenter", this);
     linesPresenter.ScrollChanged += OnScrolled;
 }