8 writes to GradientStops
Microsoft.Maui.Controls (2)
Brush\Brush.cs (2)
76 return new LinearGradientPaint { GradientStops = gradientStops, StartPoint = startPoint, EndPoint = endPoint }; 84 return new RadialGradientPaint { GradientStops = gradientStops, Center = center, Radius = radius };
Microsoft.Maui.Graphics (6)
GradientPaint.cs (2)
151 GradientStops = newStops; 175 GradientStops = newStops;
LinearGradientPaint.cs (2)
18 GradientStops = gradientStops; 29 GradientStops = gradientStops;
RadialGradientPaint.cs (2)
18 GradientStops = gradientStops; 29 GradientStops = gradientStops;
31 references to GradientStops
Microsoft.Maui (13)
Graphics\PaintExtensions.cs (2)
14 return gradientPaint.GradientStops?[0]?.Color; 31 return gradientPaint == null || gradientPaint.GradientStops.Length == 0;
Graphics\PaintExtensions.iOS.cs (6)
69 if (linearGradientPaint.GradientStops != null && linearGradientPaint.GradientStops.Length > 0) 71 var orderedStops = linearGradientPaint.GradientStops.OrderBy(x => x.Offset).ToList(); 96 if (radialGradientPaint.GradientStops != null && radialGradientPaint.GradientStops.Length > 0) 98 var orderedStops = radialGradientPaint.GradientStops.OrderBy(x => x.Offset).ToList();
Platform\iOS\MauiCALayer.cs (5)
383 CGColor[] colors = new CGColor[gradientPaint.GradientStops.Length]; 384 nfloat[] locations = new nfloat[gradientPaint.GradientStops.Length]; 386 for (int index = 0; index < gradientPaint.GradientStops.Length; index++) 388 Graphics.Color color = gradientPaint.GradientStops[index].Color; 390 locations[index] = new nfloat(gradientPaint.GradientStops[index].Offset);
Microsoft.Maui.Controls (1)
Brush\Brush.cs (1)
21 var gradientStopCollection = gradientPaint.GradientStops;
Microsoft.Maui.Graphics (7)
GradientPaint.cs (7)
21 _gradientStops = new PaintGradientStop[source.GradientStops.Length]; 24 _gradientStops[i] = new PaintGradientStop(source.GradientStops[i]); 104 foreach (var stop in GradientStops) 143 var oldStops = GradientStops; 156 if (index < 0 || index >= GradientStops.Length) 161 var oldStops = GradientStops; 180 var stops = GradientStops
Microsoft.Maui.Graphics.Skia (2)
SkiaCanvas.cs (2)
248 var colors = new SKColor[linearGradientPaint.GradientStops.Length]; 278 var colors = new SKColor[radialGradientPaint.GradientStops.Length];
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (8)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (8)
341 var gradientStops = new CanvasGradientStop[linearGradientPaint.GradientStops.Length]; 342 for (int i = 0; i < linearGradientPaint.GradientStops.Length; i++) 346 Position = linearGradientPaint.GradientStops[i].Offset, 347 Color = linearGradientPaint.GradientStops[i].Color.AsColor(Colors.White, _alpha) 359 var gradientStops = new CanvasGradientStop[radialGradientPaint.GradientStops.Length]; 360 for (int i = 0; i < radialGradientPaint.GradientStops.Length; i++) 364 Position = radialGradientPaint.GradientStops[i].Offset, 365 Color = radialGradientPaint.GradientStops[i].Color.AsColor(Colors.White, _alpha)