public override void InitializeChildControlStructure() { ScrollBar scrollbar = (ScrollBar)Control; if (smallBackButton == null) { smallBackButton = new ScrollBarButtonProvider(scrollbar, ScrollBarButtonOrientation.SmallBack); AddChildProvider(smallBackButton); } if (smallForwardButton == null) { smallForwardButton = new ScrollBarButtonProvider(scrollbar, ScrollBarButtonOrientation.SmallForward); AddChildProvider(smallForwardButton); } if (thumb == null) { thumb = new ScrollBarThumbProvider(scrollbar); AddChildProvider(thumb); } if (largeBackButton == null) { largeBackButton = new ScrollBarButtonProvider(scrollbar, ScrollBarButtonOrientation.LargeBack); AddChildProvider(largeBackButton); } if (largeForwardButton == null) { largeForwardButton = new ScrollBarButtonProvider(scrollbar, ScrollBarButtonOrientation.LargeForward); AddChildProvider(largeForwardButton); } }
public override void InitializeChildControlStructure () { ScrollBar scrollbar = (ScrollBar) Control; if (smallBackButton == null) { smallBackButton = new ScrollBarButtonProvider (scrollbar, ScrollBarButtonOrientation.SmallBack); AddChildProvider (smallBackButton); } if (smallForwardButton == null) { smallForwardButton = new ScrollBarButtonProvider (scrollbar, ScrollBarButtonOrientation.SmallForward); AddChildProvider (smallForwardButton); } if (thumb == null) { thumb = new ScrollBarThumbProvider (scrollbar); AddChildProvider (thumb); } if (largeBackButton == null) { largeBackButton = new ScrollBarButtonProvider (scrollbar, ScrollBarButtonOrientation.LargeBack); AddChildProvider (largeBackButton); } if (largeForwardButton == null) { largeForwardButton = new ScrollBarButtonProvider (scrollbar, ScrollBarButtonOrientation.LargeForward); AddChildProvider (largeForwardButton); } }