8 writes to TopLeft
PresentationFramework.Aero (2)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Classic (2)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Luna (2)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Royale (2)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
89 references to TopLeft
PresentationFramework (13)
src\Framework\System\Windows\Controls\Border.cs (8)
312|| (!DoubleUtil.IsZero(radii.TopLeft) && !uniformBorders); 402double outerCornerRadius = cornerRadius.TopLeft; // Already validated that all corners have the same radius 637double topLeft = borderRadii.TopLeft; 953if (DoubleUtil.IsZero(radii.TopLeft)) 959LeftTop = radii.TopLeft + left; 960TopLeft = radii.TopLeft + top; 992LeftTop = Math.Max(0.0, radii.TopLeft - left); 993TopLeft = Math.Max(0.0, radii.TopLeft - top);
src\Framework\System\Windows\CornerRadiusConverter.cs (2)
163return new InstanceDescriptor(ci, new object[] { cr.TopLeft, cr.TopRight, cr.BottomRight, cr.BottomLeft }); 192sb.Append(cr.TopLeft.ToString(cultureInfo));
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
1228double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 1339if (!DoubleUtilities.AreClose(cornerRadius.TopLeft, cornerRadius.TopRight))
src\Framework\System\Windows\Standard\Utilities.cs (1)
308if (!IsDoubleFiniteAndNonNegative(cornerRadius.TopLeft))
PresentationFramework.Aero (19)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
77return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 78double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 79double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 138centerLeft + cornerRadius.TopLeft, 145centerTop + cornerRadius.TopLeft, 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 212if (cornerRadius.TopLeft == ShadowDepth && 213cornerRadius.TopLeft == cornerRadius.TopRight && 214cornerRadius.TopLeft == cornerRadius.BottomLeft && 215cornerRadius.TopLeft == cornerRadius.BottomRight) 236if (cornerRadius.TopLeft > ShadowDepth) 363if (cornerRadius.TopLeft == 0) 366topLeftStops = CreateStops(c, cornerRadius.TopLeft); 380else if (cornerRadius.TopRight == cornerRadius.TopLeft) 397else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 416else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Classic (19)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
77return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 78double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 79double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 138centerLeft + cornerRadius.TopLeft, 145centerTop + cornerRadius.TopLeft, 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 212if (cornerRadius.TopLeft == ShadowDepth && 213cornerRadius.TopLeft == cornerRadius.TopRight && 214cornerRadius.TopLeft == cornerRadius.BottomLeft && 215cornerRadius.TopLeft == cornerRadius.BottomRight) 236if (cornerRadius.TopLeft > ShadowDepth) 363if (cornerRadius.TopLeft == 0) 366topLeftStops = CreateStops(c, cornerRadius.TopLeft); 380else if (cornerRadius.TopRight == cornerRadius.TopLeft) 397else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 416else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Luna (19)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
77return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 78double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 79double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 138centerLeft + cornerRadius.TopLeft, 145centerTop + cornerRadius.TopLeft, 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 212if (cornerRadius.TopLeft == ShadowDepth && 213cornerRadius.TopLeft == cornerRadius.TopRight && 214cornerRadius.TopLeft == cornerRadius.BottomLeft && 215cornerRadius.TopLeft == cornerRadius.BottomRight) 236if (cornerRadius.TopLeft > ShadowDepth) 363if (cornerRadius.TopLeft == 0) 366topLeftStops = CreateStops(c, cornerRadius.TopLeft); 380else if (cornerRadius.TopRight == cornerRadius.TopLeft) 397else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 416else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Royale (19)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
77return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 78double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 79double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 138centerLeft + cornerRadius.TopLeft, 145centerTop + cornerRadius.TopLeft, 155cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 212if (cornerRadius.TopLeft == ShadowDepth && 213cornerRadius.TopLeft == cornerRadius.TopRight && 214cornerRadius.TopLeft == cornerRadius.BottomLeft && 215cornerRadius.TopLeft == cornerRadius.BottomRight) 236if (cornerRadius.TopLeft > ShadowDepth) 363if (cornerRadius.TopLeft == 0) 366topLeftStops = CreateStops(c, cornerRadius.TopLeft); 380else if (cornerRadius.TopRight == cornerRadius.TopLeft) 397else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 416else if (cornerRadius.BottomRight == cornerRadius.TopLeft)