22 references to ShadowDepth
PresentationFramework.Royale (22)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (22)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 131double centerTop = shadowBounds.Top + ShadowDepth; 132double centerLeft = shadowBounds.Left + ShadowDepth; 133double centerRight = shadowBounds.Right - ShadowDepth; 134double centerBottom = shadowBounds.Bottom - ShadowDepth; 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 156cornerRadius.TopRight = cornerRadius.TopRight + ShadowDepth; 157cornerRadius.BottomLeft = cornerRadius.BottomLeft + ShadowDepth; 158cornerRadius.BottomRight = cornerRadius.BottomRight + ShadowDepth; 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 212if (cornerRadius.TopLeft == ShadowDepth && 236if (cornerRadius.TopLeft > ShadowDepth) 247if (cornerRadius.BottomLeft > ShadowDepth) 258if (cornerRadius.BottomRight > ShadowDepth) 270if (cornerRadius.TopRight > ShadowDepth) 303double gradientScale = 1 / (cornerRadius + ShadowDepth);