Shell.SetBackgroundColor(BindableObject, Color) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置 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 部件版式的背景色。