Share via


VisualElement.BackgroundColor Property

Definition

Gets or sets the Color which will fill the background of an element. This is a bindable property.

public:
 property Microsoft::Maui::Graphics::Color ^ BackgroundColor { Microsoft::Maui::Graphics::Color ^ get(); void set(Microsoft::Maui::Graphics::Color ^ value); };
public Microsoft.Maui.Graphics.Color BackgroundColor { get; set; }
member this.BackgroundColor : Microsoft.Maui.Graphics.Color with get, set
Public Property BackgroundColor As Color

Property Value

Remarks

For background gradients and such, use Background.

Applies to