Sometimes you may want to use the toolkit's brush names directly in your XAML. Typically you'll use them as dynamic resources, so the update with the current material palette.
有時你會想直接使用Toolkit's里面的Brush在你的項目里,典型的使用方法是作為Dynamic resources使用它們,這樣控件可以立刻更新到現在的配色方案
|
配色方案名字(
Palette Brush Names)
|
基礎顏色(Primary Colour)
- PrimaryHueLightBrush
- PrimaryHueLightForegroundBrush
- PrimaryHueMidBrush
- PrimaryHueMidForegroundBrush
- PrimaryHueDarkBrush
- PrimaryHueDarkForegroundBrush
[Light/Mid/Dark]Brush代表了基礎顏色的不同色調,[Light/Mid/Dark]ForegroundBrush代表了前景色
着重顏色(Accent Colour)
- SecondaryAccentBrush
- SecondaryAccentForegroundBrush
使用范例(Example Usage)
<TextBlock Foreground="{DynamicResource PrimaryHueMidBrush}" />
|
亮/黑具體筆刷名字(Light/Dark Specific Brush Names)
|
- MaterialDesignBackground
- MaterialDesignPaper
- MaterialDesignBody
- MaterialDesignBodyLight
- MaterialDesignColumnHeader
- MaterialDesignCheckBoxOff
- MaterialDesignCheckBoxDisabled
- MaterialDesignTextBoxBorder
- MaterialDesignDivider
- MaterialDesignSelection
- MaterialDesignFlatButtonClick
- MaterialDesignFlatButtonRipple
- MaterialDesignToolTipBackground
- MaterialDesignChipBackground
