public ScrollBarButtonProvider(ScrollBar scrollbarContainer, ScrollBarButtonOrientation orientation) : base(scrollbarContainer) { this.orientation = orientation; this.scrollbarContainer = scrollbarContainer; SetBehavior(InvokePatternIdentifiers.Pattern, new ButtonInvokeProviderBehavior(this)); }
public FragmentControlProvider GetChildButtonProvider(ScrollBarButtonOrientation orientation) { if (orientation == ScrollBarButtonOrientation.LargeBack) { return(largeBackButton); } else if (orientation == ScrollBarButtonOrientation.LargeForward) { return(largeForwardButton); } else if (orientation == ScrollBarButtonOrientation.SmallBack) { return(smallBackButton); } else //Is SmallForward { return(smallForwardButton); } }
public FragmentControlProvider GetChildButtonProvider (ScrollBarButtonOrientation orientation) { if (orientation == ScrollBarButtonOrientation.LargeBack) return largeBackButton; else if (orientation == ScrollBarButtonOrientation.LargeForward) return largeForwardButton; else if (orientation == ScrollBarButtonOrientation.SmallBack) return smallBackButton; else //Is SmallForward return smallForwardButton; }
public ScrollBarButtonProvider (ScrollBar scrollbarContainer, ScrollBarButtonOrientation orientation) : base (scrollbarContainer) { this.orientation = orientation; this.scrollbarContainer = scrollbarContainer; SetBehavior (InvokePatternIdentifiers.Pattern, new ButtonInvokeProviderBehavior (this)); }