2 writes to frameRect
System.WorkflowServices (2)
System\Workflow\Activities\Design\GradientPanel.cs (2)
78
frameRect
= new Rectangle(6, 0, this.Size.Width - 14, this.Size.Height - 8);
82
frameRect
= new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
20 references to frameRect
System.WorkflowServices (20)
System\Workflow\Activities\Design\GradientPanel.cs (20)
84
frameRect
.X -= Margin.Left;
85
frameRect
.Y -= Margin.Top;
86
frameRect
.Width += Margin.Left + Margin.Right;
87
frameRect
.Height += Margin.Top + Margin.Bottom;
88
Rectangle shadowRect = new Rectangle(
frameRect
.X,
frameRect
.Y + 6,
frameRect
.Width,
frameRect
.Height - 5);
89
glossHeight =
frameRect
.Height / 3;
90
Brush glossBrush = new LinearGradientBrush(new Point(
frameRect
.Left,
frameRect
.Top), new Point(
frameRect
.Left,
frameRect
.Top + glossHeight + 1), Color.FromArgb(120, 255, 255, 255), Color.FromArgb(60, 255, 255, 255)); // SolidBrush(Color.FromArgb(32, 255, 255, 255));
91
Brush frameBrush = new LinearGradientBrush(new Point(
frameRect
.Left,
frameRect
.Top), new Point(
frameRect
.Left,
frameRect
.Bottom), BaseColor, LightingColor);
97
e.Graphics.FillPath(frameBrush, RoundedRect(
frameRect
));
100
e.Graphics.FillPath(glossBrush, RoundedRectTopHalf(
frameRect
));
102
e.Graphics.DrawPath(new Pen(this.BorderColor), RoundedRect(
frameRect
));