src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (22)
100Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth),
108double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth;
109double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth;
122double centerTop = shadowBounds.Top + ShadowDepth;
123double centerLeft = shadowBounds.Left + ShadowDepth;
124double centerRight = shadowBounds.Right - ShadowDepth;
125double centerBottom = shadowBounds.Bottom - ShadowDepth;
146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
147cornerRadius.TopRight = cornerRadius.TopRight + ShadowDepth;
148cornerRadius.BottomLeft = cornerRadius.BottomLeft + ShadowDepth;
149cornerRadius.BottomRight = cornerRadius.BottomRight + ShadowDepth;
159Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth);
170Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight);
177Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight);
188Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth);
203if (cornerRadius.TopLeft == ShadowDepth &&
227if (cornerRadius.TopLeft > ShadowDepth)
238if (cornerRadius.BottomLeft > ShadowDepth)
249if (cornerRadius.BottomRight > ShadowDepth)
261if (cornerRadius.TopRight > ShadowDepth)
294double gradientScale = 1 / (cornerRadius + ShadowDepth);