12 writes to TopLeft
PresentationFramework.Aero (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Aero2 (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Classic (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Luna (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Royale (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
127 references to TopLeft
PresentationFramework (13)
System\Windows\Controls\Border.cs (8)
305|| (!DoubleUtil.IsZero(radii.TopLeft) && !uniformBorders); 395double outerCornerRadius = cornerRadius.TopLeft; // Already validated that all corners have the same radius 628double topLeft = borderRadii.TopLeft; 944if (DoubleUtil.IsZero(radii.TopLeft)) 950LeftTop = radii.TopLeft + left; 951TopLeft = radii.TopLeft + top; 983LeftTop = Math.Max(0.0, radii.TopLeft - left); 984TopLeft = Math.Max(0.0, radii.TopLeft - top);
System\Windows\CornerRadiusConverter.cs (2)
150return new InstanceDescriptor(ci, new object[] { cr.TopLeft, cr.TopRight, cr.BottomRight, cr.BottomLeft }); 173return string.Create(cultureInfo, stackalloc char[64], $"{cr.TopLeft}{listSeparator}{cr.TopRight}{listSeparator}{cr.BottomRight}{listSeparator}{cr.BottomLeft}");
System\Windows\Shell\WindowChromeWorker.cs (2)
822double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 925if (!DoubleUtilities.AreClose(cornerRadius.TopLeft, cornerRadius.TopRight))
System\Windows\Standard\Utilities.cs (1)
283if (!IsDoubleFiniteAndNonNegative(cornerRadius.TopLeft))
PresentationFramework.Aero (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
72return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 73double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 74double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 133centerLeft + cornerRadius.TopLeft, 140centerTop + cornerRadius.TopLeft, 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 157Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 207if (cornerRadius.TopLeft == ShadowDepth && 208cornerRadius.TopLeft == cornerRadius.TopRight && 209cornerRadius.TopLeft == cornerRadius.BottomLeft && 210cornerRadius.TopLeft == cornerRadius.BottomRight) 231if (cornerRadius.TopLeft > ShadowDepth) 358if (cornerRadius.TopLeft == 0) 361topLeftStops = CreateStops(c, cornerRadius.TopLeft); 375else if (cornerRadius.TopRight == cornerRadius.TopLeft) 392else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 411else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Aero2 (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
72return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 73double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 74double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 133centerLeft + cornerRadius.TopLeft, 140centerTop + cornerRadius.TopLeft, 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 157Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 207if (cornerRadius.TopLeft == ShadowDepth && 208cornerRadius.TopLeft == cornerRadius.TopRight && 209cornerRadius.TopLeft == cornerRadius.BottomLeft && 210cornerRadius.TopLeft == cornerRadius.BottomRight) 231if (cornerRadius.TopLeft > ShadowDepth) 358if (cornerRadius.TopLeft == 0) 361topLeftStops = CreateStops(c, cornerRadius.TopLeft); 375else if (cornerRadius.TopRight == cornerRadius.TopLeft) 392else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 411else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.AeroLite (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
72return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 73double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 74double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 133centerLeft + cornerRadius.TopLeft, 140centerTop + cornerRadius.TopLeft, 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 157Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 207if (cornerRadius.TopLeft == ShadowDepth && 208cornerRadius.TopLeft == cornerRadius.TopRight && 209cornerRadius.TopLeft == cornerRadius.BottomLeft && 210cornerRadius.TopLeft == cornerRadius.BottomRight) 231if (cornerRadius.TopLeft > ShadowDepth) 358if (cornerRadius.TopLeft == 0) 361topLeftStops = CreateStops(c, cornerRadius.TopLeft); 375else if (cornerRadius.TopRight == cornerRadius.TopLeft) 392else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 411else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Classic (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
72return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 73double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 74double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 133centerLeft + cornerRadius.TopLeft, 140centerTop + cornerRadius.TopLeft, 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 157Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 207if (cornerRadius.TopLeft == ShadowDepth && 208cornerRadius.TopLeft == cornerRadius.TopRight && 209cornerRadius.TopLeft == cornerRadius.BottomLeft && 210cornerRadius.TopLeft == cornerRadius.BottomRight) 231if (cornerRadius.TopLeft > ShadowDepth) 358if (cornerRadius.TopLeft == 0) 361topLeftStops = CreateStops(c, cornerRadius.TopLeft); 375else if (cornerRadius.TopRight == cornerRadius.TopLeft) 392else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 411else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Luna (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
72return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 73double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 74double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 133centerLeft + cornerRadius.TopLeft, 140centerTop + cornerRadius.TopLeft, 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 157Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 207if (cornerRadius.TopLeft == ShadowDepth && 208cornerRadius.TopLeft == cornerRadius.TopRight && 209cornerRadius.TopLeft == cornerRadius.BottomLeft && 210cornerRadius.TopLeft == cornerRadius.BottomRight) 231if (cornerRadius.TopLeft > ShadowDepth) 358if (cornerRadius.TopLeft == 0) 361topLeftStops = CreateStops(c, cornerRadius.TopLeft); 375else if (cornerRadius.TopRight == cornerRadius.TopLeft) 392else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 411else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Royale (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
72return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 73double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 74double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 117cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 133centerLeft + cornerRadius.TopLeft, 140centerTop + cornerRadius.TopLeft, 150cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 157Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 207if (cornerRadius.TopLeft == ShadowDepth && 208cornerRadius.TopLeft == cornerRadius.TopRight && 209cornerRadius.TopLeft == cornerRadius.BottomLeft && 210cornerRadius.TopLeft == cornerRadius.BottomRight) 231if (cornerRadius.TopLeft > ShadowDepth) 358if (cornerRadius.TopLeft == 0) 361topLeftStops = CreateStops(c, cornerRadius.TopLeft); 375else if (cornerRadius.TopRight == cornerRadius.TopLeft) 392else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 411else if (cornerRadius.BottomRight == cornerRadius.TopLeft)