[翻译]WPF控件库 MaterialDesignInXamlToolkit (2) Brush Names
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