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