18 references to Offset
Microsoft.Maui (8)
Graphics\PaintExtensions.iOS.cs (7)
71
var orderedStops = linearGradientPaint.GradientStops.OrderBy(x => x.
Offset
).ToList();
98
var orderedStops = radialGradientPaint.GradientStops.OrderBy(x => x.
Offset
).ToList();
142
if (gradientStops.Count > 1 && gradientStops.Any(gt => gt.
Offset
!= 0))
143
return gradientStops.Select(x => new NSNumber(x.
Offset
)).ToArray();
155
bool setLocation = !gradientStops.Any(gt => gt.
Offset
> location);
157
if (gradientStop.
Offset
== 0 && setLocation)
160
locations[index] = new NSNumber(gradientStop.
Offset
);
Platform\iOS\MauiCALayer.cs (1)
390
locations[index] = new nfloat(gradientPaint.GradientStops[index].
Offset
);
Microsoft.Maui.Controls (1)
Brush\Brush.cs (1)
28
gradientStops.Insert(i, new GradientStop(gs.Color, gs.
Offset
));
Microsoft.Maui.Graphics (5)
GradientPaint.cs (5)
69
if (_gradientStops[i].
Offset
<= offset)
72
offset = _gradientStops[i].
Offset
;
89
if (_gradientStops[i].
Offset
>= offset)
92
offset = _gradientStops[i].
Offset
;
194
var currentOffset = stops[i].
Offset
;
Microsoft.Maui.Graphics.Skia (2)
SkiaCanvas.cs (2)
256
stops[i] = vStops[i].
Offset
;
286
stops[i] = vStops[i].
Offset
;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (2)
346
Position = linearGradientPaint.GradientStops[i].
Offset
,
364
Position = radialGradientPaint.GradientStops[i].
Offset
,