26
|
1 <UserControl x:Class="Common.Controls.MessageTile"
|
|
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
6 Width="200"
|
|
7 Height="200"
|
|
8 DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}"
|
|
9 mc:Ignorable="d">
|
|
10
|
|
11 <Grid>
|
|
12
|
|
13 <Grid.RowDefinitions>
|
|
14 <RowDefinition Height="60" />
|
|
15 <RowDefinition Height="60" />
|
|
16 <RowDefinition Height="75" />
|
|
17 </Grid.RowDefinitions>
|
|
18
|
|
19 <Grid.ColumnDefinitions>
|
|
20 <ColumnDefinition Width="*" />
|
|
21 <ColumnDefinition Width="*" />
|
|
22 </Grid.ColumnDefinitions>
|
|
23
|
|
24 <Image Name="imageIcon"
|
|
25 Grid.Row="0"
|
|
26 Grid.Column="0"
|
|
27 Margin="10,10,0,0"
|
|
28 HorizontalAlignment="Left"
|
|
29 VerticalAlignment="Top"
|
|
30 Source="{Binding Path=DisplayIcon,
|
|
31 Mode=OneWay,
|
|
32 UpdateSourceTrigger=PropertyChanged}"
|
|
33 Stretch="None" />
|
|
34
|
|
35 <TextBlock Name="tbCount"
|
|
36 Grid.Row="1"
|
|
37 Grid.Column="0"
|
|
38 Grid.ColumnSpan="2"
|
|
39 Margin="0,0,10,0"
|
|
40 HorizontalAlignment="Right"
|
|
41 FontSize="48"
|
|
42 Text="{Binding Path=DisplayCount,
|
|
43 StringFormat=N0,
|
|
44 Mode=TwoWay,
|
|
45 UpdateSourceTrigger=PropertyChanged}" />
|
|
46
|
|
47 <TextBlock Name="tbTitle"
|
|
48 Grid.Row="2"
|
|
49 Grid.RowSpan="2"
|
|
50 Grid.Column="0"
|
|
51 Grid.ColumnSpan="3"
|
|
52 Margin="10"
|
|
53 HorizontalAlignment="Right"
|
|
54 VerticalAlignment="Bottom"
|
|
55 FontSize="24"
|
|
56 Text="{Binding Path=DisplayText,
|
|
57 Mode=TwoWay,
|
|
58 UpdateSourceTrigger=PropertyChanged}"
|
|
59 TextWrapping="Wrap" />
|
|
60
|
|
61 </Grid>
|
|
62 </UserControl>
|