Shell.SetForegroundColor(BindableObject, Color) 方法

定义

定义选项卡栏的前景色。 如果该属性未设置, ForegroundColorProperty 则使用该值。

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

参数

obj
BindableObject

设置前景色的对象。

value
Color

选项卡栏的前景色。

适用于