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"
|
27
|
6 Name="CustomMessageTile"
|
26
|
7 Width="200"
|
|
8 Height="200"
|
|
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"
|
27
|
30 Source="{Binding DisplayIcon,
|
|
31 ElementName=CustomMessageTile,
|
26
|
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"
|
27
|
42 Text="{Binding DisplayCount,
|
26
|
43 StringFormat=N0,
|
|
44 Mode=TwoWay,
|
27
|
45 ElementName=CustomMessageTile,
|
26
|
46 UpdateSourceTrigger=PropertyChanged}" />
|
|
47
|
|
48 <TextBlock Name="tbTitle"
|
|
49 Grid.Row="2"
|
|
50 Grid.RowSpan="2"
|
|
51 Grid.Column="0"
|
|
52 Grid.ColumnSpan="3"
|
|
53 Margin="10"
|
|
54 HorizontalAlignment="Right"
|
|
55 VerticalAlignment="Bottom"
|
|
56 FontSize="24"
|
27
|
57 Text="{Binding DisplayText,
|
26
|
58 Mode=TwoWay,
|
27
|
59 ElementName=CustomMessageTile,
|
26
|
60 UpdateSourceTrigger=PropertyChanged}"
|
|
61 TextWrapping="Wrap" />
|
|
62
|
|
63 </Grid>
|
|
64 </UserControl>
|