Material Design Controls

Only available in the Plus Edition

The toolkit's material controls (see list below) were designed to follow the color palettes and animations defined by the Material Design Specifications.

Each control exposes a MaterialAccent property, which represents the material color palette that will be applied to the control. Each color palette defines complimentary background and foreground colors in addition to any other required brushes, such as the selection and border brushes. Setting the MaterialAccentBrush or MaterialForeground properties will override the values defined by the color palette assigned to the MaterialAccent property.

Included Controls


  <StackPanel>
      <!-- Using one of the predefined material palettes -->
      <xctk:MaterialButton Content="DeepPurple material palette"
                           MaterialAccent="DeepPurple"
                           Width="150"
                           Height="25" 
                           Margin="5" />
      <!-- Using a custom brush -->
      <xctk:MaterialButton Content="Custom colors"
                           MaterialAccentBrush="Aqua"
                           MaterialForeground="White"
                           Width="150"
                           Height="25"
                           Margin="5" />
  </StackPanel>

Material Design Color Palette

material_palette.png
---

Last edited May 30, 2016 at 5:03 PM by dlafontaine, version 5

Comments

No comments yet.