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