12 writes to TopLeft
PresentationFramework.Aero (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Aero2 (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Classic (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Luna (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Royale (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
127 references to TopLeft
PresentationFramework (13)
System\Windows\Controls\Border.cs (8)
301|| (!DoubleUtil.IsZero(radii.TopLeft) && !uniformBorders); 391double outerCornerRadius = cornerRadius.TopLeft; // Already validated that all corners have the same radius 624double topLeft = borderRadii.TopLeft; 940if (DoubleUtil.IsZero(radii.TopLeft)) 946LeftTop = radii.TopLeft + left; 947TopLeft = radii.TopLeft + top; 979LeftTop = Math.Max(0.0, radii.TopLeft - left); 980TopLeft = Math.Max(0.0, radii.TopLeft - top);
System\Windows\CornerRadiusConverter.cs (2)
145return new InstanceDescriptor(ci, new object[] { cr.TopLeft, cr.TopRight, cr.BottomRight, cr.BottomLeft }); 168return string.Create(cultureInfo, stackalloc char[64], $"{cr.TopLeft}{listSeparator}{cr.TopRight}{listSeparator}{cr.BottomRight}{listSeparator}{cr.BottomLeft}");
System\Windows\Shell\WindowChromeWorker.cs (2)
817double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 920if (!DoubleUtilities.AreClose(cornerRadius.TopLeft, cornerRadius.TopRight))
System\Windows\Standard\Utilities.cs (1)
274if (!IsDoubleFiniteAndNonNegative(cornerRadius.TopLeft))
PresentationFramework.Aero (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
68return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 69double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 70double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 129centerLeft + cornerRadius.TopLeft, 136centerTop + cornerRadius.TopLeft, 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 153Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 203if (cornerRadius.TopLeft == ShadowDepth && 204cornerRadius.TopLeft == cornerRadius.TopRight && 205cornerRadius.TopLeft == cornerRadius.BottomLeft && 206cornerRadius.TopLeft == cornerRadius.BottomRight) 227if (cornerRadius.TopLeft > ShadowDepth) 354if (cornerRadius.TopLeft == 0) 357topLeftStops = CreateStops(c, cornerRadius.TopLeft); 371else if (cornerRadius.TopRight == cornerRadius.TopLeft) 388else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 407else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Aero2 (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
68return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 69double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 70double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 129centerLeft + cornerRadius.TopLeft, 136centerTop + cornerRadius.TopLeft, 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 153Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 203if (cornerRadius.TopLeft == ShadowDepth && 204cornerRadius.TopLeft == cornerRadius.TopRight && 205cornerRadius.TopLeft == cornerRadius.BottomLeft && 206cornerRadius.TopLeft == cornerRadius.BottomRight) 227if (cornerRadius.TopLeft > ShadowDepth) 354if (cornerRadius.TopLeft == 0) 357topLeftStops = CreateStops(c, cornerRadius.TopLeft); 371else if (cornerRadius.TopRight == cornerRadius.TopLeft) 388else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 407else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.AeroLite (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
68return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 69double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 70double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 129centerLeft + cornerRadius.TopLeft, 136centerTop + cornerRadius.TopLeft, 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 153Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 203if (cornerRadius.TopLeft == ShadowDepth && 204cornerRadius.TopLeft == cornerRadius.TopRight && 205cornerRadius.TopLeft == cornerRadius.BottomLeft && 206cornerRadius.TopLeft == cornerRadius.BottomRight) 227if (cornerRadius.TopLeft > ShadowDepth) 354if (cornerRadius.TopLeft == 0) 357topLeftStops = CreateStops(c, cornerRadius.TopLeft); 371else if (cornerRadius.TopRight == cornerRadius.TopLeft) 388else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 407else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Classic (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
68return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 69double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 70double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 129centerLeft + cornerRadius.TopLeft, 136centerTop + cornerRadius.TopLeft, 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 153Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 203if (cornerRadius.TopLeft == ShadowDepth && 204cornerRadius.TopLeft == cornerRadius.TopRight && 205cornerRadius.TopLeft == cornerRadius.BottomLeft && 206cornerRadius.TopLeft == cornerRadius.BottomRight) 227if (cornerRadius.TopLeft > ShadowDepth) 354if (cornerRadius.TopLeft == 0) 357topLeftStops = CreateStops(c, cornerRadius.TopLeft); 371else if (cornerRadius.TopRight == cornerRadius.TopLeft) 388else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 407else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Luna (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
68return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 69double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 70double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 129centerLeft + cornerRadius.TopLeft, 136centerTop + cornerRadius.TopLeft, 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 153Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 203if (cornerRadius.TopLeft == ShadowDepth && 204cornerRadius.TopLeft == cornerRadius.TopRight && 205cornerRadius.TopLeft == cornerRadius.BottomLeft && 206cornerRadius.TopLeft == cornerRadius.BottomRight) 227if (cornerRadius.TopLeft > ShadowDepth) 354if (cornerRadius.TopLeft == 0) 357topLeftStops = CreateStops(c, cornerRadius.TopLeft); 371else if (cornerRadius.TopRight == cornerRadius.TopLeft) 388else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 407else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Royale (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
68return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 69double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 70double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 113cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 129centerLeft + cornerRadius.TopLeft, 136centerTop + cornerRadius.TopLeft, 146cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 153Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 203if (cornerRadius.TopLeft == ShadowDepth && 204cornerRadius.TopLeft == cornerRadius.TopRight && 205cornerRadius.TopLeft == cornerRadius.BottomLeft && 206cornerRadius.TopLeft == cornerRadius.BottomRight) 227if (cornerRadius.TopLeft > ShadowDepth) 354if (cornerRadius.TopLeft == 0) 357topLeftStops = CreateStops(c, cornerRadius.TopLeft); 371else if (cornerRadius.TopRight == cornerRadius.TopLeft) 388else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 407else if (cornerRadius.BottomRight == cornerRadius.TopLeft)