63 references to ScrollButton
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ControlPaint.cs (2)
1848public static void DrawScrollButton(Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state) { 1856public static void DrawScrollButton(Graphics graphics, int x, int y, int width, int height, ScrollButton button, ButtonState state) {
winforms\Managed\System\WinForms\UpDownBase.cs (2)
1723ScrollButton.Up, 1728ScrollButton.Down,
System.Workflow.ComponentModel (59)
AuthoringOM\Design\ActivityDesigner.cs (1)
3106using (GraphicsPath graphicsPath = ActivityDesignerPaint.GetScrollIndicatorPath(dropDownRectangle, ScrollButton.Down))
AuthoringOM\Design\DesignerHelpers.cs (7)
770internal static GraphicsPath GetScrollIndicatorPath(Rectangle bounds, ScrollButton button) 776if (button == ScrollButton.Left || button == ScrollButton.Right) 782if (button == ScrollButton.Right) 795else if (button == ScrollButton.Up || button == ScrollButton.Down) 801if (button == ScrollButton.Down)
AuthoringOM\Design\DesignerWidgets.cs (50)
146DrawButton(graphics, (Orientation == Orientation.Horizontal) ? ScrollButton.Left : ScrollButton.Up); 149DrawButton(graphics, (Orientation == Orientation.Horizontal) ? ScrollButton.Right : ScrollButton.Down); 155private void DrawButton(Graphics graphics, ScrollButton scrollButton) 263private ScrollButton activeButton = ScrollButton.Min; 334Rectangle leftScrollButtonBounds = GetButtonBounds(ScrollButton.Left); 432ScrollButton scrollButton = HitTest(mousePoint); 434if (scrollButton != ScrollButton.Min) 436int incr = (scrollButton == ScrollButton.Left || scrollButton == ScrollButton.Up) ? -1 : 1; 459ActiveButton = ScrollButton.Min; 466ActiveButton = ScrollButton.Min; 473protected Rectangle GetButtonBounds(ScrollButton scrollButton) 478if (scrollButton == ScrollButton.Left || scrollButton == ScrollButton.Up) 483else if (scrollButton == ScrollButton.Right || scrollButton == ScrollButton.Down) 506protected ScrollButton HitTest(Point mousePoint) 510ScrollButton scrollButton = (this.orientation == Orientation.Horizontal) ? ScrollButton.Left : ScrollButton.Up; 518ScrollButton scrollButton = (this.orientation == Orientation.Horizontal) ? ScrollButton.Right : ScrollButton.Down; 524return ScrollButton.Min; 527protected ScrollButton ActiveButton 2419private ScrollButton activeScrollButton = ScrollButton.Min; 2620if (GetButtonBounds(ScrollButton.Left).Contains(point)) 2622ActiveScrollButton = ScrollButton.Left; 2625else if (GetButtonBounds(ScrollButton.Right).Contains(point)) 2627ActiveScrollButton = ScrollButton.Right; 2644ActiveScrollButton = ScrollButton.Min; 2649ActiveScrollButton = ScrollButton.Min; 2662this.bounds.Width += GetButtonBounds(ScrollButton.Left).Size.Width; 2663this.bounds.Width += GetButtonBounds(ScrollButton.Right).Size.Width; 2690Rectangle scrollbuttonRectangle = GetButtonBounds(ScrollButton.Left); 2691if (ActiveScrollButton == ScrollButton.Left) 2700scrollbuttonRectangle = GetButtonBounds(ScrollButton.Right); 2701if (ActiveScrollButton == ScrollButton.Right) 2795private ScrollButton ActiveScrollButton 2827Rectangle scrollLeftButton = GetButtonBounds(ScrollButton.Left); 2828Rectangle scrollRightButton = GetButtonBounds(ScrollButton.Right); 2839private Rectangle GetButtonBounds(ScrollButton scrollButton) 2842if (scrollButton == ScrollButton.Min || scrollButtonImage == null) 2849int startLocation = (scrollButton == ScrollButton.Left) ? this.bounds.X : this.bounds.Right - scrollButtonSize.Width; 2937bounds = this.itemStrip.GetButtonBounds(ScrollButton.Left); 2941bounds = this.itemStrip.GetButtonBounds(ScrollButton.Right);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
89using (GraphicsPath dropDownIndicator = ActivityDesignerPaint.GetScrollIndicatorPath(activatedBounds, ScrollButton.Down))