22 references to ShadowDepth
PresentationFramework.Royale (22)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (22)
104Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 112double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 113double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 126double centerTop = shadowBounds.Top + ShadowDepth; 127double centerLeft = shadowBounds.Left + ShadowDepth; 128double centerRight = shadowBounds.Right - ShadowDepth; 129double centerBottom = shadowBounds.Bottom - ShadowDepth; 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 151cornerRadius.TopRight = cornerRadius.TopRight + ShadowDepth; 152cornerRadius.BottomLeft = cornerRadius.BottomLeft + ShadowDepth; 153cornerRadius.BottomRight = cornerRadius.BottomRight + ShadowDepth; 163Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 174Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 181Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 192Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 207if (cornerRadius.TopLeft == ShadowDepth && 231if (cornerRadius.TopLeft > ShadowDepth) 242if (cornerRadius.BottomLeft > ShadowDepth) 253if (cornerRadius.BottomRight > ShadowDepth) 265if (cornerRadius.TopRight > ShadowDepth) 298double gradientScale = 1 / (cornerRadius + ShadowDepth);