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

The color that is used to fill the background of a VisualElement.

Remarks

For background gradients and such, use Background.

Applies to