annotate Messaging/Common/Themes/Generic.xaml @ 77:86ed4919b126

Working version!
author Steven Hollidge <stevenhollidge@hotmail.com>
date Mon, 23 Apr 2012 22:06:05 +0100
parents c8c79f05d76f
children
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}">
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
13 <Border Background="{StaticResource MetroPurpleBrush}">
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
14 <Grid Background="{Binding Path=Background, RelativeSource={RelativeSource TemplatedParent}}">
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
15
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
16 <Grid.RowDefinitions>
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
17 <RowDefinition Height="*" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
18 <RowDefinition Height="*" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
19 <RowDefinition Height="1.25*" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
20 </Grid.RowDefinitions>
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
21
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
22 <Grid.ColumnDefinitions>
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
23 <ColumnDefinition Width="*" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
24 <ColumnDefinition Width="*" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
25 </Grid.ColumnDefinitions>
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
26
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
27 <Image x:Name="PART_DISPLAY_ICON"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
28 Grid.Row="0"
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
29 Grid.Column="0"
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
30 Margin="10,10,0,0"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
31 HorizontalAlignment="Left"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
32 VerticalAlignment="Top"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
33 Source="{Binding Path=DisplayIcon,
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
34 RelativeSource={RelativeSource TemplatedParent},
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
35 UpdateSourceTrigger=PropertyChanged}"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
36 Stretch="None" />
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
37
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
38 <TextBlock x:Name="PART_DISPLAY_COUNT_CONTAINER"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
39 Grid.Row="1"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
40 Grid.Column="0"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
41 Grid.ColumnSpan="2"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
42 Margin="0,0,10,0"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
43 HorizontalAlignment="Right"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
44 FontSize="48"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
45 Foreground="White"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
46 Text="{Binding Path=DisplayCount,
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
47 StringFormat=N0,
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
48 RelativeSource={RelativeSource TemplatedParent},
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
49 UpdateSourceTrigger=PropertyChanged}" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
50
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
51 <TextBlock x:Name="PART_DISPLAY_TITLE_CONTAINER"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
52 Grid.Row="2"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
53 Grid.RowSpan="2"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
54 Grid.Column="0"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
55 Grid.ColumnSpan="3"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
56 Margin="10"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
57 HorizontalAlignment="Right"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
58 VerticalAlignment="Bottom"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
59 FontSize="24"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
60 Foreground="White"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
61 Text="{Binding Path=DisplayText,
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
62 RelativeSource={RelativeSource TemplatedParent},
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
63 UpdateSourceTrigger=PropertyChanged}"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
64 TextWrapping="Wrap" />
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
65 </Grid>
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
66 </Border>
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
67 </ControlTemplate>
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
68 </Setter.Value>
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
69 </Setter>
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
70 </Style>
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
71
83c1f62d9370 All working except image so far
adminsh@apollo
parents:
diff changeset
72 </ResourceDictionary>