Share via


VisualElement.Background 属性

定义

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

public:
 property Microsoft::Maui::Controls::Brush ^ Background { Microsoft::Maui::Controls::Brush ^ get(); void set(Microsoft::Maui::Controls::Brush ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.BrushTypeConverter))]
public Microsoft.Maui.Controls.Brush Background { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.BrushTypeConverter))>]
member this.Background : Microsoft.Maui.Controls.Brush with get, set
Public Property Background As Brush

属性值

属性

适用于