VisualElement.BackgroundColor 属性

定义

获取或设置将 Color 填充元素背景的 。 这是一种可绑定属性。

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

属性值

用于填充 VisualElement 背景的颜色。

注解

对于背景渐变等,请使用 Background

适用于