Beispiel #1
0
        public ScrollingRelation(SliderBox scBar, IScrollable scrollableSurface)
        {
            this.scBar             = scBar;
            this.scrollableSurface = scrollableSurface;
            switch (scBar.ScrollBarType)
            {
            case ScrollBarType.Vertical:
            {
                SetupVerticalScrollRelation();
            }
            break;

            case ScrollBarType.Horizontal:
            {
                SetupHorizontalScrollRelation();
            }
            break;

            default:
                throw new NotSupportedException();
            }
        }
Beispiel #2
0
 public ScrollBar(int width, int height)
     : base(width, height)
 {
     slideBox = new SliderBox(minmax_boxHeight, minmax_boxHeight);
 }