Shell.SetForegroundColor(BindableObject, Color) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义选项卡栏的前景色。 如果该属性未设置, 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
选项卡栏的前景色。