12 writes to TopLeft
PresentationFramework.Aero (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Aero2 (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Classic (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Luna (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
PresentationFramework.Royale (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth;
127 references to TopLeft
PresentationFramework (13)
System\Windows\Controls\Border.cs (8)
300|| (!DoubleUtil.IsZero(radii.TopLeft) && !uniformBorders); 390double outerCornerRadius = cornerRadius.TopLeft; // Already validated that all corners have the same radius 631double topLeft = borderRadii.TopLeft; 947if (DoubleUtil.IsZero(radii.TopLeft)) 953LeftTop = radii.TopLeft + left; 954TopLeft = radii.TopLeft + top; 986LeftTop = Math.Max(0.0, radii.TopLeft - left); 987TopLeft = Math.Max(0.0, radii.TopLeft - top);
System\Windows\CornerRadiusConverter.cs (2)
131return new InstanceDescriptor(ci, new object[] { cr.TopLeft, cr.TopRight, cr.BottomRight, cr.BottomLeft }); 151return string.Create(cultureInfo, stackalloc char[64], $"{cr.TopLeft}{listSeparator}{cr.TopRight}{listSeparator}{cr.BottomRight}{listSeparator}{cr.BottomLeft}");
System\Windows\Shell\WindowChromeWorker.cs (2)
816double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 919if (!DoubleUtilities.AreClose(cornerRadius.TopLeft, cornerRadius.TopRight))
System\Windows\Standard\Utilities.cs (1)
273if (!IsDoubleFiniteAndNonNegative(cornerRadius.TopLeft))
PresentationFramework.Aero (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
67return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 68double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 69double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 128centerLeft + cornerRadius.TopLeft, 135centerTop + cornerRadius.TopLeft, 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 152Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 202if (cornerRadius.TopLeft == ShadowDepth && 203cornerRadius.TopLeft == cornerRadius.TopRight && 204cornerRadius.TopLeft == cornerRadius.BottomLeft && 205cornerRadius.TopLeft == cornerRadius.BottomRight) 226if (cornerRadius.TopLeft > ShadowDepth) 353if (cornerRadius.TopLeft == 0) 356topLeftStops = CreateStops(c, cornerRadius.TopLeft); 372else if (cornerRadius.TopRight == cornerRadius.TopLeft) 391else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 412else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Aero2 (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
67return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 68double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 69double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 128centerLeft + cornerRadius.TopLeft, 135centerTop + cornerRadius.TopLeft, 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 152Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 202if (cornerRadius.TopLeft == ShadowDepth && 203cornerRadius.TopLeft == cornerRadius.TopRight && 204cornerRadius.TopLeft == cornerRadius.BottomLeft && 205cornerRadius.TopLeft == cornerRadius.BottomRight) 226if (cornerRadius.TopLeft > ShadowDepth) 353if (cornerRadius.TopLeft == 0) 356topLeftStops = CreateStops(c, cornerRadius.TopLeft); 372else if (cornerRadius.TopRight == cornerRadius.TopLeft) 391else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 412else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.AeroLite (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
67return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 68double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 69double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 128centerLeft + cornerRadius.TopLeft, 135centerTop + cornerRadius.TopLeft, 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 152Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 202if (cornerRadius.TopLeft == ShadowDepth && 203cornerRadius.TopLeft == cornerRadius.TopRight && 204cornerRadius.TopLeft == cornerRadius.BottomLeft && 205cornerRadius.TopLeft == cornerRadius.BottomRight) 226if (cornerRadius.TopLeft > ShadowDepth) 353if (cornerRadius.TopLeft == 0) 356topLeftStops = CreateStops(c, cornerRadius.TopLeft); 372else if (cornerRadius.TopRight == cornerRadius.TopLeft) 391else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 412else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Classic (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
67return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 68double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 69double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 128centerLeft + cornerRadius.TopLeft, 135centerTop + cornerRadius.TopLeft, 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 152Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 202if (cornerRadius.TopLeft == ShadowDepth && 203cornerRadius.TopLeft == cornerRadius.TopRight && 204cornerRadius.TopLeft == cornerRadius.BottomLeft && 205cornerRadius.TopLeft == cornerRadius.BottomRight) 226if (cornerRadius.TopLeft > ShadowDepth) 353if (cornerRadius.TopLeft == 0) 356topLeftStops = CreateStops(c, cornerRadius.TopLeft); 372else if (cornerRadius.TopRight == cornerRadius.TopLeft) 391else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 412else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Luna (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
67return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 68double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 69double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 128centerLeft + cornerRadius.TopLeft, 135centerTop + cornerRadius.TopLeft, 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 152Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 202if (cornerRadius.TopLeft == ShadowDepth && 203cornerRadius.TopLeft == cornerRadius.TopRight && 204cornerRadius.TopLeft == cornerRadius.BottomLeft && 205cornerRadius.TopLeft == cornerRadius.BottomRight) 226if (cornerRadius.TopLeft > ShadowDepth) 353if (cornerRadius.TopLeft == 0) 356topLeftStops = CreateStops(c, cornerRadius.TopLeft); 372else if (cornerRadius.TopRight == cornerRadius.TopLeft) 391else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 412else if (cornerRadius.BottomRight == cornerRadius.TopLeft)
PresentationFramework.Royale (19)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (19)
67return !(cr.TopLeft < 0.0 || cr.TopRight < 0.0 || cr.BottomLeft < 0.0 || cr.BottomRight < 0.0 || 68double.IsNaN(cr.TopLeft) || double.IsNaN(cr.TopRight) || double.IsNaN(cr.BottomLeft) || double.IsNaN(cr.BottomRight) || 69double.IsInfinity(cr.TopLeft) || double.IsInfinity(cr.TopRight) || double.IsInfinity(cr.BottomLeft) || double.IsInfinity(cr.BottomRight)); 112cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 128centerLeft + cornerRadius.TopLeft, 135centerTop + cornerRadius.TopLeft, 145cornerRadius.TopLeft = cornerRadius.TopLeft + ShadowDepth; 152Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 202if (cornerRadius.TopLeft == ShadowDepth && 203cornerRadius.TopLeft == cornerRadius.TopRight && 204cornerRadius.TopLeft == cornerRadius.BottomLeft && 205cornerRadius.TopLeft == cornerRadius.BottomRight) 226if (cornerRadius.TopLeft > ShadowDepth) 353if (cornerRadius.TopLeft == 0) 356topLeftStops = CreateStops(c, cornerRadius.TopLeft); 372else if (cornerRadius.TopRight == cornerRadius.TopLeft) 391else if (cornerRadius.BottomLeft == cornerRadius.TopLeft) 412else if (cornerRadius.BottomRight == cornerRadius.TopLeft)