3 writes to Background
Microsoft.Maui.Controls (3)
Handlers\Shell\Tizen\ShellFlyoutItemView.cs (2)
113 _grid.Background = GColors.DarkGray; 117 _grid.Background = GColors.Transparent;
SwipeView\SwipeView.Mapper.cs (1)
25 swipeView.Content.Background = swipeView.Background;
54 references to Background
Microsoft.Maui.Controls (20)
Compatibility\Handlers\Tizen\FrameRenderer.cs (1)
158 var color = ((Paint)Element.Background)?.ToColor();
Page\Page.cs (2)
840 if (!Brush.IsNullOrEmpty(Background)) 841 return Background;
SwipeView\SwipeView.Mapper.cs (4)
11 SwipeViewHandler.Mapper.AppendToMapping<SwipeView, ISwipeViewHandler>(nameof(Background), MapBackground); 18 var contentBackgroundIsNull = Brush.IsNullOrEmpty(swipeView.Content.Background); 23 if (!Brush.IsNullOrEmpty(swipeView.Background)) 25 swipeView.Content.Background = swipeView.Background;
TitleBar\TitleBar.cs (1)
376 static (TitleBar tb) => tb.Background,
VisualElement\VisualElement.cs (10)
285 /// <summary>Bindable property for <see cref="Background"/>.</summary> 286 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(Brush), typeof(VisualElement), Brush.Default, 320 var background = Background; 327 _backgroundChanged ??= (sender, e) => OnPropertyChanged(nameof(Background)); 338 var background = Background; 555 /// <remarks>For background gradients and such, use <see cref="Background"/>.</remarks> 1883 if (!Brush.IsNullOrEmpty(Background)) 1884 return Background; 2230 if (Background != null) 2231 SetInheritedBindingContext(Background, BindingContext);
VisualElement\VisualElement.Mapper.cs (2)
38 handler.UpdateValue(nameof(Background)); 41 handler.UpdateValue(nameof(Background));
Microsoft.Maui.Controls.Compatibility (34)
iOS\Renderers\BoxRenderer.cs (4)
57 SetBackground(Element.Background); 70 SetBackground(Element.Background); 79 SetBackground(Element.Background); 107 brush = Element.Background;
iOS\Renderers\ButtonRenderer.cs (1)
87 Brush brush = Element.Background;
iOS\Renderers\CarouselPageRenderer.cs (1)
376 Brush background = Element.Background;
iOS\Renderers\FrameRenderer.cs (2)
93 if (!Brush.IsNullOrEmpty(Element.Background)) 95 var backgroundLayer = this.GetBackgroundLayer(Element.Background);
iOS\Renderers\ListViewRenderer.cs (1)
147 var backgroundLayer = _backgroundUIView.GetBackgroundLayer(Element.Background);
iOS\Renderers\PageRenderer.cs (4)
139 if (Element.Background != null && !Element.Background.IsEmpty) 479 Brush background = Element.Background; 482 NativeView.UpdateBackground(Element.Background);
iOS\Renderers\PhoneFlyoutPageRenderer.cs (2)
344 Brush background = Element.Background; 347 View.UpdateBackground(Element.Background);
iOS\Renderers\RefreshViewRenderer.cs (1)
235 SetBackground(Element.Background);
iOS\Renderers\ScrollViewRenderer.cs (1)
320 Brush background = Element.Background;
iOS\Renderers\SwipeViewRenderer.cs (1)
176 Brush background = Element.Background;
iOS\Renderers\TabletFlyoutPageRenderer.cs (2)
509 Brush background = Element.Background; 512 View.UpdateBackground(Element.Background);
iOS\Renderers\TableViewRenderer.cs (1)
159 Control.BackgroundView.UpdateBackground(Element.Background);
iOS\ViewRenderer.cs (5)
145 if (Control != null && e.OldElement != null && e.OldElement.Background != e.NewElement.Background) 146 SetBackground(e.NewElement.Background); 164 SetBackground(Element.Background); 285 Brush brush = Element.Background;
iOS\VisualElementRenderer.cs (8)
190 if (element.Background != null && (!element.Background.IsEmpty || (oldElement != null && element.Background != oldElement.Background))) 191 SetBackground(element.Background); 256 bool hasBackground = Element?.Background != null && !Element.Background.IsEmpty; 334 SetBackground(Element.Background);