16 references to ToColor
Microsoft.Maui (1)
Platform\iOS\SearchBarExtensions.cs (1)
67
var foregroundColor = placeholderColor ?? ColorExtensions.PlaceholderColor.
ToColor
();
Microsoft.Maui.Controls (5)
Application\Application.cs (1)
231
return ColorExtensions.AccentColor.
ToColor
();
Compatibility\Handlers\ListView\iOS\EntryCellRenderer.cs (1)
16
static readonly Color DefaultTextColor = Microsoft.Maui.Platform.ColorExtensions.LabelColor.
ToColor
();
Compatibility\Handlers\ListView\iOS\TextCellRenderer.cs (2)
12
readonly Color DefaultDetailColor = Microsoft.Maui.Platform.ColorExtensions.SecondaryLabelColor.
ToColor
();
13
readonly Color DefaultTextColor = Microsoft.Maui.Platform.ColorExtensions.LabelColor.
ToColor
();
Compatibility\Handlers\Shell\iOS\SearchHandlerAppearanceTracker.cs (1)
200
var placeHolderColor = targetColor ?? Microsoft.Maui.Platform.ColorExtensions.PlaceholderColor.
ToColor
();
Microsoft.Maui.Controls.Compatibility (10)
iOS\Cells\EntryCellRenderer.cs (1)
15
static readonly Color DefaultTextColor = Maui.Platform.ColorExtensions.LabelColor.
ToColor
();
iOS\Cells\TextCellRenderer.cs (2)
13
readonly Color DefaultDetailColor = Maui.Platform.ColorExtensions.SecondaryLabelColor.
ToColor
();
14
readonly Color DefaultTextColor = Maui.Platform.ColorExtensions.LabelColor.
ToColor
();
iOS\Renderers\EntryRenderer.cs (1)
42
readonly Color _defaultPlaceholderColor = Maui.Platform.ColorExtensions.SeventyPercentGrey.
ToColor
();
iOS\Renderers\ImageRenderer.cs (1)
236
readonly Color _defaultColor = Maui.Platform.ColorExtensions.LabelColor.
ToColor
();
iOS\Renderers\NavigationRenderer.cs (1)
666
var color = Element.BackgroundColor ?? Maui.Platform.ColorExtensions.BackgroundColor.
ToColor
();
iOS\Renderers\PickerRenderer.cs (1)
218
readonly Color _defaultPlaceholderColor = ColorExtensions.PlaceholderColor.
ToColor
();
iOS\Renderers\SearchBarRenderer.cs (3)
337
? targetColor : Maui.Platform.ColorExtensions.PlaceholderColor.
ToColor
();
345
_textField.AttributedPlaceholder = formatted.ToNSAttributedString(Element.RequireFontManager(), defaultColor: targetColor ?? ColorExtensions.PlaceholderColor.
ToColor
());
381
var color = Element.IsEnabled && targetColor != null ? targetColor : _defaultTextColor.
ToColor
();