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;
14 references to Color
Microsoft.Maui (1)
Graphics\PaintExtensions.cs (1)
14 return gradientPaint.GradientStops?[0]?.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 is not null && stop.Color is not 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)