[翻譯]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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM