5 types derived from Paint
Microsoft.Maui (1)
ImageSources\ImageSourcePaint.cs (1)
6 class ImageSourcePaint : Paint
Microsoft.Maui.Graphics (4)
GradientPaint.cs (1)
5 public abstract class GradientPaint : Paint
ImagePaint.cs (1)
3 public class ImagePaint : Paint
PatternPaint.cs (1)
3 public class PatternPaint : Paint
SolidPaint.cs (1)
3 public class SolidPaint : Paint
70 references to Paint
Microsoft.Maui (24)
Core\ICheckBox.cs (1)
18 Paint? Foreground { get; }
Core\IIndicatorView.cs (2)
39 Paint? IndicatorColor { get; } 45 Paint? SelectedIndicatorColor { get; }
Core\IRefreshView.cs (1)
18 Paint? RefreshColor { get; }
Core\IShadow.cs (1)
24 Paint Paint { get; }
Core\IShapeView.cs (1)
23 Paint? Fill { get; }
Core\IStroke.cs (1)
13 Paint? Stroke { get; }
Core\ISwipeItemMenuItem.cs (1)
10 Paint? Background { get; }
Core\IView.cs (1)
70 Paint? Background { get; }
Graphics\PaintExtensions.cs (3)
8 public static Color? ToColor(this Paint? paint) 25 public static bool IsNullOrEmpty([NotNullWhen(true)] this Paint? paint) 42 internal static bool IsTransparent(this Paint? paint)
Graphics\PaintExtensions.iOS.cs (1)
12 public static CALayer? ToCALayer(this Paint paint, CGRect frame = default)
Graphics\ShapeDrawable.cs (2)
84 var stroke = ShapeView.Stroke; 127 var fillPaint = ShapeView.Fill ?? ShapeView.Background;
Handlers\Button\ButtonHandler.iOS.cs (1)
59 if (button?.Background is Paint paint)
Platform\iOS\MauiCALayer.cs (5)
19 Paint? _background; 23 Paint? _stroke; 106 public void SetBackground(Paint? paint) 160 public void SetBorderBrush(Paint? paint) 374 void DrawGradientPaint(CGContext graphics, Paint paint)
Platform\iOS\SearchBarExtensions.cs (1)
36 var background = searchBar.Background;
Platform\iOS\StrokeExtensions.cs (1)
25 var borderBrush = border.Stroke;
Platform\iOS\ViewExtensions.cs (1)
73 public static void UpdateBackground(this UIView platformView, Paint? paint, IButtonStroke? stroke = null)
Microsoft.Maui.Controls (20)
Border\Border.cs (1)
217 Paint? IStroke.Stroke => Stroke;
BoxView\BoxView.cs (2)
70 Paint? IShapeView.Fill => Color?.AsPaint(); 72 Paint? IStroke.Stroke => null;
Brush\Brush.cs (2)
14 public static implicit operator Brush(Paint paint) 54 public static implicit operator Paint(Brush brush)
Brush\BrushTypeConverter.cs (5)
35 || sourceType == typeof(Paint); 38 => destinationType == typeof(Paint); 46 else if (value is Paint paintValue) 86 if (value is Brush brush && destinationType == typeof(Paint)) 88 return (Paint)brush;
CheckBox\CheckBox.cs (1)
77 public Paint Foreground => Color?.AsPaint();
IndicatorView\IndicatorView.cs (2)
189 Paint IIndicatorView.IndicatorColor => IndicatorColor?.AsPaint(); 190 Paint IIndicatorView.SelectedIndicatorColor => SelectedIndicatorColor?.AsPaint();
Page\Page.cs (1)
835 Paint IView.Background
RefreshView\RefreshView.cs (1)
143 Paint IRefreshView.RefreshColor => RefreshColor?.AsPaint();
Shadow.cs (1)
20 Paint IShadow.Paint => Brush;
Shapes\Shape.cs (2)
164 Paint IShapeView.Fill => Fill; 166 Paint IStroke.Stroke => Stroke;
SwipeView\SwipeItem.cs (1)
33 Paint ISwipeItemMenuItem.Background => new SolidPaint(BackgroundColor);
VisualElement\VisualElement.cs (1)
1817 Paint? IView.Background
Microsoft.Maui.Controls.Maps (3)
HandlerImpl\Circle.Impl.cs (1)
9 public Paint? Fill => FillColor?.AsPaint();
HandlerImpl\MapElement.Impl.cs (1)
9 Paint? IStroke.Stroke => StrokeColor?.AsPaint();
HandlerImpl\Polygon.Impl.cs (1)
14 public Paint? Fill => FillColor?.AsPaint();
Microsoft.Maui.Graphics (17)
AbstractCanvas.cs (1)
230 public abstract void SetFillPaint(Paint paint, RectF rectangle);
CanvasExtensions.cs (6)
248 public static void FillArc(this ICanvas canvas, float x, float y, float width, float height, float startAngle, float endAngle, Paint paint, bool clockwise) 358 var paint = pattern.AsPaint(foregroundColor); 378 public static void SetFillPaint(this ICanvas target, Paint paint, Point point1, Point point2) 383 public static void SetFillPaint(this ICanvas target, Paint paint, PointF point1, PointF point2) 388 public static void SetFillPaint(this ICanvas target, Paint paint, Rect rectangle) 393 public static void SetFillPaint(this ICanvas target, Paint paint, RectF rectangle)
Color.cs (1)
143 public Paint AsPaint()
ICanvas.cs (1)
328 public void SetFillPaint(Paint paint, RectF rectangle);
ImageExtensions.cs (2)
54 public static Paint AsPaint(this IImage target) 66 var paint = image.AsPaint();
PaintPattern.cs (1)
6 public Paint Paint { get; set; }
PatternExtensions.cs (2)
5 public static Paint AsPaint(this IPattern target) 10 public static Paint AsPaint(this IPattern target, Color foregroundColor)
PictureCanvas.cs (2)
254 public void SetFillPaint(Paint paint, PointF point1, PointF point2) 259 public void SetFillPaint(Paint paint, RectF rectangle)
ScalingCanvas.cs (1)
203 public void SetFillPaint(Paint paint, RectF rectangle)
Microsoft.Maui.Graphics.Skia (1)
SkiaCanvas.cs (1)
224 public override void SetFillPaint(Paint paint, RectF rectangle)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (4)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
377 public override void SetFillPaint(Paint paint, RectF rectangle)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (3)
58 private Paint _sourceFillpaint; 300 public void SetLinearGradient(Paint aPaint, Vector2 startPoint, Vector2 endPoint) 310 public void SetRadialGradient(Paint aPaint, Vector2 center, float radius)
Microsoft.Maui.Maps (1)
Core\IFilledMapElement.cs (1)
13 Paint? Fill { get; }