annotate Messaging/Server/UI/MainWindow.xaml @ 28:4c0dea4760c5

RabbitMq working
author adminsh@apollo
date Wed, 21 Mar 2012 20:29:04 +0000
parents 96fdf58e05b4
children 9919ee227c93
rev   line source
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
1 <metro:Window x:Class="Server.UI.MainWindow"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
4 xmlns:c="clr-namespace:Common.Controls;assembly=Common"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
5 xmlns:converters="clr-namespace:Server.Converters"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
6 xmlns:metro="http://schemas.codeplex.com/elysium/theme"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
7 xmlns:Xaml="clr-namespace:Common.Xaml;assembly=Common"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
8 Title="Messaging Server"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
9 Width="700"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
10 Height="475"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
11 MinWidth="700"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
12 MinHeight="475"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
13 DataContext="{Binding MainWindowViewModel,
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
14 Source={StaticResource Locator}}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
15 Icon="{StaticResource Mail}">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
16
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
17 <TabControl Margin="{Binding Source={x:Static metro:Parameters.Instance}, Path=BoldPadding, Mode=OneWay}">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
18 <TabItem Header="dashboard">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
19 <Grid HorizontalAlignment="Center">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
20 <Grid.ColumnDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
21 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
22 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
23 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
24 </Grid.ColumnDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
25 <Grid.RowDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
26 <RowDefinition Height="Auto" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
27 <RowDefinition Height="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
28 <RowDefinition Height="*" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
29 <RowDefinition Height="50" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
30 </Grid.RowDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
31
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
32 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
33 Grid.Column="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
34 Margin="10,10,10,0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
35 Content="{Binding SocketEndPoint.IsListening,
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
36 Converter={converters:ToggleButtonToTextConverter}}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
37 IsChecked="{Binding SocketEndPoint.IsListening}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
38 IsEnabled="True"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
39 IsThreeState="False" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
40
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
41 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
42 Grid.Column="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
43 Margin="10,10,10,0"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
44 Content="{Binding RabbitEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
45 Converter={converters:ToggleButtonToTextConverter}}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
46 IsChecked="{Binding RabbitEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
47 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
48
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
49 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
50 Grid.Column="2"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
51 Margin="10,10,10,0"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
52 Content="{Binding RabbitProtoEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
53 Converter={converters:ToggleButtonToTextConverter}}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
54 IsChecked="{Binding RabbitProtoEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
55 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
56
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
57 <c:MessageTile Grid.Row="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
58 Grid.Column="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
59 Background="{StaticResource MetroPurpleBrush}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
60 DisplayCount="{Binding SocketEndPoint.DisplayCount,
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
61 Mode=TwoWay,
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
62 UpdateSourceTrigger=PropertyChanged}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
63 DisplayIcon="{StaticResource Mail}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
64 DisplayText="{Binding SocketEndPoint.DisplayText}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
65 Foreground="White"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
66 ToolTip="{Binding SocketEndPoint.ToolTip}" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
67
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
68 <c:MessageTile Grid.Row="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
69 Grid.Column="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
70 Background="{StaticResource MetroGreenBrush}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
71 DisplayCount="{Binding RabbitEndPoint.DisplayCount}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
72 DisplayIcon="{StaticResource Mail}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
73 DisplayText="{Binding RabbitEndPoint.DisplayText}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
74 Foreground="White"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
75 ToolTip="{Binding RabbitEndPoint.ToolTip}" />
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
76
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
77 <c:MessageTile Grid.Row="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
78 Grid.Column="2"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
79 Background="{StaticResource MetroOrangeBrush}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
80 DisplayCount="{Binding RabbitProtoEndPoint.DisplayCount}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
81 DisplayIcon="{StaticResource Mail}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
82 DisplayText="{Binding RabbitProtoEndPoint.DisplayText}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
83 Foreground="White"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
84 ToolTip="{Binding RabbitProtoEndPoint.ToolTip}" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
85 <ScrollViewer Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
86 Grid.Column="0"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
87 Xaml:XamlHelper.AutoScroll="{Binding SocketEndPoint.IsLogChanged}">
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
88 <TextBlock Margin="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
89 Background="{StaticResource MetroGrayBrush}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
90 Padding="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
91 Text="{Binding SocketEndPoint.DisplayLog}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
92 TextWrapping="Wrap" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
93 </ScrollViewer>
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
94 <ScrollViewer Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
95 Grid.Column="1"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
96 Xaml:XamlHelper.AutoScroll="{Binding RabbitEndPoint.IsLogChanged}">
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
97 <TextBlock Margin="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
98 Background="{StaticResource MetroGrayBrush}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
99 Padding="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
100 Text="{Binding RabbitEndPoint.DisplayLog}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
101 TextWrapping="WrapWithOverflow" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
102 </ScrollViewer>
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
103 <ScrollViewer Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
104 Grid.Column="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
105 Xaml:XamlHelper.AutoScroll="{Binding RabbitProtoEndPoint.IsLogChanged}">
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
106 <TextBlock Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
107 Grid.Column="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
108 Margin="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
109 Background="{StaticResource MetroGrayBrush}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
110 Padding="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
111 Text="{Binding RabbitProtoEndPoint.DisplayLog}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
112 TextWrapping="WrapWithOverflow" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
113 </ScrollViewer>
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
114 <metro:ToggleSwitch Grid.Row="3"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
115 Grid.Column="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
116 Width="80"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
117 Height="50"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
118 Margin="10"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
119 HorizontalAlignment="Left"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
120 IsChecked="{Binding OverrideSwitch}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
121 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
122 <Button Grid.Row="3"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
123 Grid.Column="2"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
124 Width="75"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
125 Margin="10"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
126 HorizontalAlignment="Right"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
127 Command="{Binding CloseCommand}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
128 Content="Close" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
129 </Grid>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
130 </TabItem>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
131 </TabControl>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
132 </metro:Window>