src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (22)
99Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth),
107double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth;
108double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth;
121double centerTop = shadowBounds.Top + ShadowDepth;
122double centerLeft = shadowBounds.Left + ShadowDepth;
123double centerRight = shadowBounds.Right - ShadowDepth;
124double centerBottom = shadowBounds.Bottom - ShadowDepth;
145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
146cornerRadius.TopRight = cornerRadius.TopRight + ShadowDepth;
147cornerRadius.BottomLeft = cornerRadius.BottomLeft + ShadowDepth;
148cornerRadius.BottomRight = cornerRadius.BottomRight + ShadowDepth;
158Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth);
169Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight);
176Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight);
187Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth);
202if (cornerRadius.TopLeft == ShadowDepth &&
226if (cornerRadius.TopLeft > ShadowDepth)
237if (cornerRadius.BottomLeft > ShadowDepth)
248if (cornerRadius.BottomRight > ShadowDepth)
260if (cornerRadius.TopRight > ShadowDepth)
293double gradientScale = 1 / (cornerRadius + ShadowDepth);