15 references to ToCGColor
Microsoft.Maui (4)
Graphics\PaintExtensions.iOS.cs (2)
38 BackgroundColor = solidPaint.Color.ToCGColor() 186 colors[index] = gradientStop.Color.ToCGColor();
Platform\iOS\ButtonExtensions.cs (1)
13 platformButton.Layer.BorderColor = buttonStroke.StrokeColor.ToCGColor();
Platform\iOS\ViewExtensions.cs (1)
764 layer.BorderColor = stroke.StrokeColor.ToCGColor();
Microsoft.Maui.Controls (4)
Compatibility\Handlers\iOS\FrameRenderer.cs (2)
120 _actualView.Layer.BackgroundColor = element.BackgroundColor.ToCGColor(); 150 _actualView.Layer.BorderColor = element.BorderColor.ToCGColor();
Platform\iOS\Extensions\BrushExtensions.cs (2)
52 BackgroundColor = solidColorBrush.Color.ToCGColor() 255 colors[index] = gradientStop.Color.ToCGColor();
Microsoft.Maui.Controls.Compatibility (7)
iOS\Renderers\BorderElementManager.cs (1)
56 control.Layer.BorderColor = ImageButton.BorderColor.ToCGColor();
iOS\Renderers\FrameRenderer.cs (2)
88 _actualView.Layer.BackgroundColor = Element.BackgroundColor.ToCGColor(); 109 _actualView.Layer.BorderColor = Element.BorderColor.ToCGColor();
iOS\ShadowEffect.cs (2)
25 layer.ShadowColor = Colors.Transparent.ToCGColor(); 46 layer.ShadowColor = PlatformElement.GetShadowColor(Element).ToCGColor();
iOS\Shapes\ShapeRenderer.cs (2)
507 fillColor = solidColorBrush.Color.ToCGColor(); 530 strokeColor = solidColorBrush.Color.ToCGColor();