Mercurial > silverbladetech
comparison Messaging/Common/Controls/MessageTile.xaml @ 27:96fdf58e05b4
Server working with sockets and rabbitmq
author | adminsh@apollo |
---|---|
date | Wed, 21 Mar 2012 19:00:59 +0000 |
parents | 045dac571339 |
children |
comparison
equal
deleted
inserted
replaced
26:045dac571339 | 27:96fdf58e05b4 |
---|---|
1 <UserControl x:Class="Common.Controls.MessageTile" | 1 <UserControl x:Class="Common.Controls.MessageTile" |
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | 4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | 5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 Name="CustomMessageTile" | |
6 Width="200" | 7 Width="200" |
7 Height="200" | 8 Height="200" |
8 DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}" | |
9 mc:Ignorable="d"> | 9 mc:Ignorable="d"> |
10 | 10 |
11 <Grid> | 11 <Grid> |
12 | 12 |
13 <Grid.RowDefinitions> | 13 <Grid.RowDefinitions> |
25 Grid.Row="0" | 25 Grid.Row="0" |
26 Grid.Column="0" | 26 Grid.Column="0" |
27 Margin="10,10,0,0" | 27 Margin="10,10,0,0" |
28 HorizontalAlignment="Left" | 28 HorizontalAlignment="Left" |
29 VerticalAlignment="Top" | 29 VerticalAlignment="Top" |
30 Source="{Binding Path=DisplayIcon, | 30 Source="{Binding DisplayIcon, |
31 Mode=OneWay, | 31 ElementName=CustomMessageTile, |
32 UpdateSourceTrigger=PropertyChanged}" | 32 UpdateSourceTrigger=PropertyChanged}" |
33 Stretch="None" /> | 33 Stretch="None" /> |
34 | 34 |
35 <TextBlock Name="tbCount" | 35 <TextBlock Name="tbCount" |
36 Grid.Row="1" | 36 Grid.Row="1" |
37 Grid.Column="0" | 37 Grid.Column="0" |
38 Grid.ColumnSpan="2" | 38 Grid.ColumnSpan="2" |
39 Margin="0,0,10,0" | 39 Margin="0,0,10,0" |
40 HorizontalAlignment="Right" | 40 HorizontalAlignment="Right" |
41 FontSize="48" | 41 FontSize="48" |
42 Text="{Binding Path=DisplayCount, | 42 Text="{Binding DisplayCount, |
43 StringFormat=N0, | 43 StringFormat=N0, |
44 Mode=TwoWay, | 44 Mode=TwoWay, |
45 ElementName=CustomMessageTile, | |
45 UpdateSourceTrigger=PropertyChanged}" /> | 46 UpdateSourceTrigger=PropertyChanged}" /> |
46 | 47 |
47 <TextBlock Name="tbTitle" | 48 <TextBlock Name="tbTitle" |
48 Grid.Row="2" | 49 Grid.Row="2" |
49 Grid.RowSpan="2" | 50 Grid.RowSpan="2" |
51 Grid.ColumnSpan="3" | 52 Grid.ColumnSpan="3" |
52 Margin="10" | 53 Margin="10" |
53 HorizontalAlignment="Right" | 54 HorizontalAlignment="Right" |
54 VerticalAlignment="Bottom" | 55 VerticalAlignment="Bottom" |
55 FontSize="24" | 56 FontSize="24" |
56 Text="{Binding Path=DisplayText, | 57 Text="{Binding DisplayText, |
57 Mode=TwoWay, | 58 Mode=TwoWay, |
59 ElementName=CustomMessageTile, | |
58 UpdateSourceTrigger=PropertyChanged}" | 60 UpdateSourceTrigger=PropertyChanged}" |
59 TextWrapping="Wrap" /> | 61 TextWrapping="Wrap" /> |
60 | 62 |
61 </Grid> | 63 </Grid> |
62 </UserControl> | 64 </UserControl> |