SystemColors.MenuBarBrushKey 屬性

定義

取得繪製功能表列背景之 SolidColorBrushResourceKey

public:
 static property System::Windows::ResourceKey ^ MenuBarBrushKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey MenuBarBrushKey { get; }
static member MenuBarBrushKey : System.Windows.ResourceKey
Public Shared ReadOnly Property MenuBarBrushKey As ResourceKey

屬性值

繪製功能表列背景之 SolidColorBrush 的資源索引碼。 這個筆刷的 IsFrozen 屬性為 true,所以無法修改。

備註

MenuBarBrushKey使用 建立筆刷的動態參考,以繪製功能表列的背景。 如果筆刷已變更,這個動態參考會自動更新。 若要建立不會自動更新的靜態參考,請使用 MenuBarBrush

XAML Attribute Usage

<object property="{DynamicResource {x:Static SystemColors.MenuBarBrushKey}}" />  

XAML 值

x:Static
x:Static 標記延伸

適用於

另請參閱