-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Palette.xaml
46 lines (46 loc) · 2.31 KB
/
Palette.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<UserControl x:Class="MaterialDesignColors.WpfExample.Palette"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Grid.Resources>
<Style TargetType="TextBlock">
<Setter Property="FontSize" Value="14" />
<Setter Property="FontWeight" Value="DemiBold" />
<Setter Property="Margin" Value="4" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Border Background="{DynamicResource PrimaryHueMidBrush}" Grid.ColumnSpan="3">
<TextBlock Foreground="{DynamicResource PrimaryHueMidForegroundBrush}">Primary - Mid</TextBlock>
</Border>
<Border Background="{DynamicResource PrimaryHueLightBrush}"
Grid.Row="1" Grid.Column="0">
<TextBlock FontWeight="Bold" Foreground="{DynamicResource PrimaryHueLightForegroundBrush}">Light</TextBlock>
</Border>
<Border Background="{DynamicResource PrimaryHueMidBrush}"
Grid.Row="1" Grid.Column="1">
<TextBlock Foreground="{DynamicResource PrimaryHueMidForegroundBrush}">Mid</TextBlock>
</Border>
<Border Background="{DynamicResource PrimaryHueDarkBrush}"
Grid.Row="1" Grid.Column="2">
<TextBlock Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}">Dark</TextBlock>
</Border>
<Border Background="{DynamicResource SecondaryAccentBrush}"
Grid.Row="2" Grid.ColumnSpan="3" Grid.Column="0">
<TextBlock Foreground="{DynamicResource SecondaryAccentForegroundBrush}">Accent</TextBlock>
</Border>
</Grid>
</UserControl>