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

適用於