Shell.SetTabBarBackgroundColor(BindableObject, Color) 方法

定义

设置选项卡栏的背景色。 如果该属性未设置,则使用 BackgroundColor 属性值。

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

参数

obj
BindableObject

设置颜色的对象。

value
Color

选项卡栏的背景色。

适用于