2 writes to Color
Microsoft.Maui.Graphics (2)
GradientPaint.cs (2)
46 _gradientStops[startColorIndex].Color = value ?? Colors.White; 56 _gradientStops[endColorIndex].Color = value ?? Colors.White;
18 references to Color
Microsoft.Maui (5)
Graphics\PaintExtensions.cs (1)
14 return gradientPaint.GradientStops?[0]?.Color;
Graphics\PaintExtensions.iOS.cs (3)
179 if (gradientStop.Color == Colors.Transparent) 181 var color = gradientStops[index == 0 ? index + 1 : index - 1].Color; 186 colors[index] = gradientStop.Color.ToCGColor();
Platform\iOS\MauiCALayer.cs (1)
388 Graphics.Color color = gradientPaint.GradientStops[index].Color;
Microsoft.Maui.Controls (1)
Brush\Brush.cs (1)
28 gradientStops.Insert(i, new GradientStop(gs.Color, gs.Offset));
Microsoft.Maui.Graphics (8)
GradientPaint.cs (8)
42 get => _gradientStops[StartColorIndex].Color; 52 get => _gradientStops[EndColorIndex].Color; 106 if (stop.Color != null && stop.Color.Alpha < 1) 184 return stops[0].Color; 198 return stops[i].Color; 232 return BlendStartAndEndColors(stops[beforeIndex].Color, stops[afterIndex].Color, f);
Microsoft.Maui.Graphics.Skia (2)
SkiaCanvas.cs (2)
255 colors[i] = vStops[i].Color.ToColor(CurrentState.Alpha); 285 colors[i] = vStops[i].Color.ToColor(CurrentState.Alpha);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (2)
347 Color = linearGradientPaint.GradientStops[i].Color.AsColor(Colors.White, _alpha) 365 Color = radialGradientPaint.GradientStops[i].Color.AsColor(Colors.White, _alpha)