2 writes to BackgroundColor
Microsoft.Maui.Controls (2)
IndicatorView\IndicatorStackLayout.cs (1)
118
visualElement.
BackgroundColor
= isSelected
SwipeView\SwipeView.Mapper.cs (1)
29
swipeView.Content.
BackgroundColor
= swipeView.BackgroundColor;
30 references to BackgroundColor
Microsoft.Maui.Controls (27)
Button\Button.cs (1)
149
/// <remarks>This property has no effect if <see cref="IBorderElement.BorderWidth" /> is set to 0. On Android this property will not have an effect unless <see cref="VisualElement.
BackgroundColor
" /> is set to a non-default color.</remarks>
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (2)
521
if (Element.
BackgroundColor
== null)
524
View.BackgroundColor = Element.
BackgroundColor
.ToPlatform();
Compatibility\Handlers\iOS\FrameRenderer.cs (2)
113
if (element.
BackgroundColor
== null)
120
_actualView.Layer.BackgroundColor = element.
BackgroundColor
.ToCGColor();
Compatibility\Handlers\ListView\iOS\CellRenderer.cs (2)
128
if (cell.RealParent is VisualElement element && element.
BackgroundColor
!= null)
129
uiBgColor = element.
BackgroundColor
.ToPlatform();
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (2)
711
var color = Element.
BackgroundColor
== null ? Maui.Platform.ColorExtensions.BackgroundColor : Element.
BackgroundColor
.ToPlatform();
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (1)
358
var color = Shell.
BackgroundColor
?.ToPlatform();
Compatibility\Handlers\TableView\iOS\TableViewRenderer.cs (1)
141
Control.BackgroundView = Element.
BackgroundColor
== null ? _originalBackgroundView : null;
Compatibility\Handlers\VisualElementRenderer.cs (1)
35
[nameof(VisualElement.
BackgroundColor
)] = MapBackgroundColor,
Page\Page.cs (2)
841
if (
BackgroundColor
.IsNotDefault())
842
return new SolidColorBrush(
BackgroundColor
);
Platform\iOS\ControlsModalWrapper.cs (2)
34
Color modalBkgndColor = ((Page)_modal.VirtualView).
BackgroundColor
;
194
Color modalBkgndColor = Page.
BackgroundColor
;
RadioButton\RadioButton.cs (2)
448
border.SetBinding(BackgroundColorProperty, static (RadioButton rb) => rb.
BackgroundColor
, source: RelativeBindingSource.TemplatedParent);
562
contentPresenter.SetBinding(BackgroundColorProperty, static (RadioButton radio) => radio.
BackgroundColor
, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent);
SwipeView\SwipeView.Mapper.cs (3)
19
var contentBackgroundColorIsNull = swipeView.Content.
BackgroundColor
== null;
27
else if (swipeView.
BackgroundColor
!= null)
29
swipeView.Content.BackgroundColor = swipeView.
BackgroundColor
;
TitleBar\TitleBar.cs (1)
357
static (TitleBar tb) => tb.
BackgroundColor
,
VisualElement\VisualElement.cs (4)
275
/// <summary>Bindable property for <see cref="
BackgroundColor
"/>.</summary>
276
public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(
BackgroundColor
), typeof(Color), typeof(VisualElement), null);
1820
if (
BackgroundColor
.IsNotDefault())
1821
return new SolidColorBrush(
BackgroundColor
);
VisualElement\VisualElement.Mapper.cs (1)
26
viewMapper.ReplaceMapping<IView, IViewHandler>(nameof(
BackgroundColor
), MapBackgroundColor);
Microsoft.Maui.Controls.Compatibility (3)
Tizen\Renderers\BoxViewRenderer.cs (1)
35
Control.UpdateBackgroundColor(!Element.Color.IsDefault() ? Element.Color.ToNative() : Element.
BackgroundColor
.ToNative());
Tizen\Renderers\VisualElementRenderer.cs (2)
570
if (initialize && Element.
BackgroundColor
.IsDefault())
573
NativeView.UpdateBackgroundColor(Element.
BackgroundColor
.ToNative());