2 writes to Offset
Microsoft.Maui.Controls (2)
Brush\BrushTypeConverter.cs (1)
259 Offset = offset ?? -1
GradientStop.cs (1)
38 Offset = offset;
16 references to Offset
Microsoft.Maui.Controls (12)
Brush\Brush.cs (1)
68 gradientStops[i] = new GraphicsGradientStop(gs.Offset, gs.Color);
GradientStop.cs (4)
20 /// <summary>Bindable property for <see cref="Offset"/>.</summary> 22 nameof(Offset), typeof(float), typeof(GradientStop), 0f); 47 return Color == dest.Color && global::System.Math.Abs(Offset - dest.Offset) < 0.00001;
Platform\iOS\Extensions\BrushExtensions.cs (7)
75 var orderedStops = linearGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList(); 103 var orderedStops = radialGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList(); 211 if (gradientStops.Count > 1 && gradientStops.Any(gt => gt.Offset != 0)) 212 return gradientStops.Select(x => new NSNumber(x.Offset)).ToArray(); 224 bool setLocation = !gradientStops.Any(gt => gt.Offset > location); 226 if (gradientStop.Offset == 0 && setLocation) 229 locations[index] = new NSNumber(gradientStop.Offset);
Microsoft.Maui.Controls.Compatibility (4)
Tizen\Extensions\BrushExtensions.cs (4)
94 var orderedGradientStops = linearGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList(); 96 var gradientColorPos = orderedGradientStops.Select(x => x.Offset).ToArray(); 104 var orderedGradientStops = radialGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList(); 106 var gradientColorPos = orderedGradientStops.Select(x => x.Offset).ToArray();