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;
13 references to BackgroundColor
Microsoft.Maui.Controls (13)
Button\Button.cs (1)
150
/// <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>
Page\Page.cs (2)
843
if (
BackgroundColor
.IsNotDefault())
844
return new SolidColorBrush(
BackgroundColor
);
RadioButton\RadioButton.cs (1)
555
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)
371
static (TitleBar tb) => tb.
BackgroundColor
,
VisualElement\VisualElement.cs (4)
278
/// <summary>Bindable property for <see cref="
BackgroundColor
"/>.</summary>
279
public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(
BackgroundColor
), typeof(Color), typeof(VisualElement), null);
1823
if (
BackgroundColor
.IsNotDefault())
1824
return new SolidColorBrush(
BackgroundColor
);
VisualElement\VisualElement.Mapper.cs (1)
26
viewMapper.ReplaceMapping<IView, IViewHandler>(nameof(
BackgroundColor
), MapBackgroundColor);