public ShapeWithScrollbar(IScrollableContainer SourceShape) : base() { Scrollable = new ScrollableContainer(SourceShape); VScroll = ScrollbarFactory.Instance.CreateVScrollbar(Scrollable.VRange); HScroll = ScrollbarFactory.Instance.CreateHScrollbar(Scrollable.HRange); BottomRightCorner = ScrollbarFactory.Instance.CreateRectangle(); SuspendLayout = true; Add(Scrollable); Add(VScroll); Add(HScroll); Add(BottomRightCorner); SuspendLayout = false; }
public ScrollableContainer(IScrollableContainer Source) : base() { Content = Source; }