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