Mercurial > silverbladetech
comparison Messaging/Common/Themes/Generic.xaml @ 36:c8c79f05d76f
WORKING VERSION! HIGH FIVE!
author | adminsh@apollo |
---|---|
date | Tue, 27 Mar 2012 18:33:44 +0100 |
parents | 83c1f62d9370 |
children |
comparison
equal
deleted
inserted
replaced
35:83c1f62d9370 | 36:c8c79f05d76f |
---|---|
8 | 8 |
9 <Style TargetType="{x:Type c:MetroTile}"> | 9 <Style TargetType="{x:Type c:MetroTile}"> |
10 <Setter Property="Template"> | 10 <Setter Property="Template"> |
11 <Setter.Value> | 11 <Setter.Value> |
12 <ControlTemplate TargetType="{x:Type c:MetroTile}"> | 12 <ControlTemplate TargetType="{x:Type c:MetroTile}"> |
13 <Grid Background="Black"> | 13 <Border Background="{StaticResource MetroPurpleBrush}"> |
14 <Grid Background="{Binding Path=Background, RelativeSource={RelativeSource TemplatedParent}}"> | |
14 | 15 |
15 <Grid.RowDefinitions> | 16 <Grid.RowDefinitions> |
16 <RowDefinition Height="*" /> | 17 <RowDefinition Height="*" /> |
17 <RowDefinition Height="*" /> | 18 <RowDefinition Height="*" /> |
18 <RowDefinition Height="1.25*" /> | 19 <RowDefinition Height="1.25*" /> |
19 </Grid.RowDefinitions> | 20 </Grid.RowDefinitions> |
20 | 21 |
21 <Grid.ColumnDefinitions> | 22 <Grid.ColumnDefinitions> |
22 <ColumnDefinition Width="*" /> | 23 <ColumnDefinition Width="*" /> |
23 <ColumnDefinition Width="*" /> | 24 <ColumnDefinition Width="*" /> |
24 </Grid.ColumnDefinitions> | 25 </Grid.ColumnDefinitions> |
25 | 26 |
26 <Image x:Name="PART_DISPLAY_ICON" | 27 <Image x:Name="PART_DISPLAY_ICON" |
27 Grid.Row="0" | 28 Grid.Row="0" |
28 Grid.Column="0" | 29 Grid.Column="0" |
29 Margin="10,10,0,0" | 30 Margin="10,10,0,0" |
30 HorizontalAlignment="Left" | 31 HorizontalAlignment="Left" |
31 VerticalAlignment="Top" | 32 VerticalAlignment="Top" |
32 Source="{Binding Path=DisplayIcon, | 33 Source="{Binding Path=DisplayIcon, |
33 RelativeSource={RelativeSource FindAncestor, | 34 RelativeSource={RelativeSource TemplatedParent}, |
34 AncestorType=c:MetroTile, | 35 UpdateSourceTrigger=PropertyChanged}" |
35 AncestorLevel=1}, | 36 Stretch="None" /> |
36 UpdateSourceTrigger=PropertyChanged}" | |
37 Stretch="None" /> | |
38 | 37 |
39 <TextBlock x:Name="PART_DISPLAY_COUNT_CONTAINER" | 38 <TextBlock x:Name="PART_DISPLAY_COUNT_CONTAINER" |
40 Grid.Row="1" | 39 Grid.Row="1" |
41 Grid.Column="0" | 40 Grid.Column="0" |
42 Grid.ColumnSpan="2" | 41 Grid.ColumnSpan="2" |
43 Margin="0,0,10,0" | 42 Margin="0,0,10,0" |
44 HorizontalAlignment="Right" | 43 HorizontalAlignment="Right" |
45 FontSize="48" | 44 FontSize="48" |
46 Foreground="White" | 45 Foreground="White" |
47 Text="{Binding Path=DisplayCount, | 46 Text="{Binding Path=DisplayCount, |
48 StringFormat=N0, | 47 StringFormat=N0, |
49 RelativeSource={RelativeSource FindAncestor, | 48 RelativeSource={RelativeSource TemplatedParent}, |
50 AncestorType=c:MetroTile, | 49 UpdateSourceTrigger=PropertyChanged}" /> |
51 AncestorLevel=1}, | |
52 UpdateSourceTrigger=PropertyChanged}" /> | |
53 | 50 |
54 <TextBlock x:Name="PART_DISPLAY_TITLE_CONTAINER" | 51 <TextBlock x:Name="PART_DISPLAY_TITLE_CONTAINER" |
55 Grid.Row="2" | 52 Grid.Row="2" |
56 Grid.RowSpan="2" | 53 Grid.RowSpan="2" |
57 Grid.Column="0" | 54 Grid.Column="0" |
58 Grid.ColumnSpan="3" | 55 Grid.ColumnSpan="3" |
59 Margin="10" | 56 Margin="10" |
60 HorizontalAlignment="Right" | 57 HorizontalAlignment="Right" |
61 VerticalAlignment="Bottom" | 58 VerticalAlignment="Bottom" |
62 FontSize="24" | 59 FontSize="24" |
63 Foreground="White" | 60 Foreground="White" |
64 Text="{Binding Path=DisplayText, | 61 Text="{Binding Path=DisplayText, |
65 RelativeSource={RelativeSource FindAncestor, | 62 RelativeSource={RelativeSource TemplatedParent}, |
66 AncestorType=c:MetroTile, | 63 UpdateSourceTrigger=PropertyChanged}" |
67 AncestorLevel=1}, | 64 TextWrapping="Wrap" /> |
68 UpdateSourceTrigger=PropertyChanged}" | 65 </Grid> |
69 TextWrapping="Wrap" /> | 66 </Border> |
70 </Grid> | |
71 </ControlTemplate> | 67 </ControlTemplate> |
72 </Setter.Value> | 68 </Setter.Value> |
73 </Setter> | 69 </Setter> |
74 </Style> | 70 </Style> |
75 | 71 |