Ejemplo n.º 1
0
            public ScrollBarButtonProvider(ScrollBar scrollbarContainer,
                                           ScrollBarButtonOrientation orientation)
                : base(scrollbarContainer)
            {
                this.orientation        = orientation;
                this.scrollbarContainer = scrollbarContainer;

                SetBehavior(InvokePatternIdentifiers.Pattern,
                            new ButtonInvokeProviderBehavior(this));
            }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
		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;
		}
Ejemplo n.º 4
0
			public ScrollBarButtonProvider (ScrollBar scrollbarContainer,
			                                ScrollBarButtonOrientation orientation)
				: base (scrollbarContainer) 
			{
				this.orientation = orientation;
				this.scrollbarContainer = scrollbarContainer;
				
				SetBehavior (InvokePatternIdentifiers.Pattern, 
				             new ButtonInvokeProviderBehavior (this));
			}