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(); } }
public ScrollBar(int width, int height) : base(width, height) { slideBox = new SliderBox(minmax_boxHeight, minmax_boxHeight); }