35
|
1 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
3 xmlns:c="clr-namespace:Common.Controls">
|
|
4
|
|
5 <ResourceDictionary.MergedDictionaries>
|
|
6 <ResourceDictionary Source="/Elysium.Theme;component/Themes/SharedResources.xaml" />
|
|
7 </ResourceDictionary.MergedDictionaries>
|
|
8
|
|
9 <Style TargetType="{x:Type c:MetroTile}">
|
|
10 <Setter Property="Template">
|
|
11 <Setter.Value>
|
|
12 <ControlTemplate TargetType="{x:Type c:MetroTile}">
|
36
|
13 <Border Background="{StaticResource MetroPurpleBrush}">
|
|
14 <Grid Background="{Binding Path=Background, RelativeSource={RelativeSource TemplatedParent}}">
|
35
|
15
|
36
|
16 <Grid.RowDefinitions>
|
|
17 <RowDefinition Height="*" />
|
|
18 <RowDefinition Height="*" />
|
|
19 <RowDefinition Height="1.25*" />
|
|
20 </Grid.RowDefinitions>
|
35
|
21
|
36
|
22 <Grid.ColumnDefinitions>
|
|
23 <ColumnDefinition Width="*" />
|
|
24 <ColumnDefinition Width="*" />
|
|
25 </Grid.ColumnDefinitions>
|
|
26
|
|
27 <Image x:Name="PART_DISPLAY_ICON"
|
|
28 Grid.Row="0"
|
35
|
29 Grid.Column="0"
|
36
|
30 Margin="10,10,0,0"
|
|
31 HorizontalAlignment="Left"
|
|
32 VerticalAlignment="Top"
|
|
33 Source="{Binding Path=DisplayIcon,
|
|
34 RelativeSource={RelativeSource TemplatedParent},
|
|
35 UpdateSourceTrigger=PropertyChanged}"
|
|
36 Stretch="None" />
|
35
|
37
|
36
|
38 <TextBlock x:Name="PART_DISPLAY_COUNT_CONTAINER"
|
|
39 Grid.Row="1"
|
|
40 Grid.Column="0"
|
|
41 Grid.ColumnSpan="2"
|
|
42 Margin="0,0,10,0"
|
|
43 HorizontalAlignment="Right"
|
|
44 FontSize="48"
|
|
45 Foreground="White"
|
|
46 Text="{Binding Path=DisplayCount,
|
|
47 StringFormat=N0,
|
|
48 RelativeSource={RelativeSource TemplatedParent},
|
|
49 UpdateSourceTrigger=PropertyChanged}" />
|
|
50
|
|
51 <TextBlock x:Name="PART_DISPLAY_TITLE_CONTAINER"
|
|
52 Grid.Row="2"
|
|
53 Grid.RowSpan="2"
|
|
54 Grid.Column="0"
|
|
55 Grid.ColumnSpan="3"
|
|
56 Margin="10"
|
|
57 HorizontalAlignment="Right"
|
|
58 VerticalAlignment="Bottom"
|
|
59 FontSize="24"
|
|
60 Foreground="White"
|
|
61 Text="{Binding Path=DisplayText,
|
|
62 RelativeSource={RelativeSource TemplatedParent},
|
|
63 UpdateSourceTrigger=PropertyChanged}"
|
|
64 TextWrapping="Wrap" />
|
|
65 </Grid>
|
|
66 </Border>
|
35
|
67 </ControlTemplate>
|
|
68 </Setter.Value>
|
|
69 </Setter>
|
|
70 </Style>
|
|
71
|
|
72 </ResourceDictionary> |