Shell.SetBackgroundColor(BindableObject, Color) 方法

定义

设置 Shell 部件版式中的背景色。 颜色不会填充到 Shell 内容后面。

public:
 static void SetBackgroundColor(Microsoft::Maui::Controls::BindableObject ^ obj, Microsoft::Maui::Graphics::Color ^ value);
public static void SetBackgroundColor (Microsoft.Maui.Controls.BindableObject obj, Microsoft.Maui.Graphics.Color value);
static member SetBackgroundColor : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Graphics.Color -> unit
Public Shared Sub SetBackgroundColor (obj As BindableObject, value As Color)

参数

obj
BindableObject

设置背景色的对象。

value
Color

Shell 部件版式的背景色。

适用于