annotate Messaging/Server/UI/MainWindow.xaml @ 35:83c1f62d9370

All working except image so far
author adminsh@apollo
date Tue, 27 Mar 2012 16:15:45 +0100
parents 7d9de5746f18
children c8c79f05d76f
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,
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
14 Source={StaticResource Locator}}">
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
15
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
16 <Window.Resources>
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
17 <Image x:Key="MailIcon" Source="mail.ico" />
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
18 </Window.Resources>
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
19
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
20 <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
21 <TabItem Header="dashboard">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
22 <Grid HorizontalAlignment="Center">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
23 <Grid.ColumnDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
24 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
25 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
26 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
27 </Grid.ColumnDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
28 <Grid.RowDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
29 <RowDefinition Height="Auto" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
30 <RowDefinition Height="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
31 <RowDefinition Height="*" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
32 <RowDefinition Height="50" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
33 </Grid.RowDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
34
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
35 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
36 Grid.Column="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
37 Margin="10,10,10,0"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
38 Content="{Binding MsmqEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
39 Converter={converters:ToggleButtonToTextConverter}}"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
40 IsChecked="{Binding MsmqEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
41 IsEnabled="True"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
42 IsThreeState="False" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
43
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
44 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
45 Grid.Column="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
46 Margin="10,10,10,0"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
47 Content="{Binding RabbitEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
48 Converter={converters:ToggleButtonToTextConverter}}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
49 IsChecked="{Binding RabbitEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
50 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
51
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
52 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
53 Grid.Column="2"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
54 Margin="10,10,10,0"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
55 Content="{Binding ZeroMqEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
56 Converter={converters:ToggleButtonToTextConverter}}"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
57 IsChecked="{Binding ZeroMqEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
58 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
59
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
60 <c:MetroTile Grid.Row="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
61 Grid.Column="0"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
62 DisplayCount="{Binding MsmqEndPoint.DisplayCount}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
63 DisplayIcon="{StaticResource Mail}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
64 DisplayText="{Binding MsmqEndPoint.DisplayText}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
65 Margin="10"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
66 Foreground="White"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
67 ToolTip="{Binding MsmqEndPoint.ToolTip}" />
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
68
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
69
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
70 <c:MetroTile Grid.Row="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
71 Grid.Column="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
72 Margin="10"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
73 Background="{StaticResource MetroGreenBrush}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
74 DisplayCount="{Binding RabbitEndPoint.DisplayCount}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
75 DisplayIcon="{StaticResource Mail}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
76 DisplayText="{Binding RabbitEndPoint.DisplayText}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
77 Foreground="White"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
78 ToolTip="{Binding RabbitEndPoint.ToolTip}" />
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
79
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
80 <c:MetroTile Grid.Row="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
81 Grid.Column="2"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
82 Margin="10"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
83 Background="{StaticResource MetroOrangeBrush}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
84 DisplayCount="{Binding ZeroMqEndPoint.DisplayCount}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
85 DisplayIcon="{StaticResource Mail}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
86 DisplayText="{Binding ZeroMqEndPoint.DisplayText}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
87 Foreground="White"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
88 RenderTransformOrigin="0.5,0.5"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
89 ToolTip="{Binding ZeroMqEndPoint.ToolTip}" />
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
90
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
91 <ScrollViewer Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
92 Grid.Column="0"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
93 Xaml:XamlHelper.AutoScroll="{Binding MsmqEndPoint.IsLogChanged}">
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
94 <TextBlock Margin="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
95 Background="{StaticResource MetroGrayBrush}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
96 Padding="10"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
97 Text="{Binding MsmqEndPoint.DisplayLog}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
98 TextWrapping="Wrap" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
99 </ScrollViewer>
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
100 <ScrollViewer Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
101 Grid.Column="1"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
102 Xaml:XamlHelper.AutoScroll="{Binding RabbitEndPoint.IsLogChanged}">
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
103 <TextBlock Margin="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
104 Background="{StaticResource MetroGrayBrush}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
105 Padding="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
106 Text="{Binding RabbitEndPoint.DisplayLog}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
107 TextWrapping="WrapWithOverflow" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
108 </ScrollViewer>
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
109 <ScrollViewer Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
110 Grid.Column="2"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
111 Xaml:XamlHelper.AutoScroll="{Binding ZeroMqEndPoint.IsLogChanged}">
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
112 <TextBlock Grid.Row="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
113 Grid.Column="2"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
114 Margin="10"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
115 Background="{StaticResource MetroGrayBrush}"
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
116 Padding="10"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
117 Text="{Binding ZeroMqEndPoint.DisplayLog}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
118 TextWrapping="WrapWithOverflow" />
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
119 </ScrollViewer>
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
120 <metro:ToggleSwitch Grid.Row="3"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
121 Grid.Column="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
122 Width="80"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
123 Height="50"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
124 Margin="10"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
125 HorizontalAlignment="Left"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
126 IsChecked="{Binding OverrideSwitch}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
127 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
128 <Button Grid.Row="3"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
129 Grid.Column="2"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
130 Width="75"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
131 Margin="10"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
132 HorizontalAlignment="Right"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
133 Command="{Binding CloseCommand}"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
134 Content="Close" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
135 </Grid>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
136 </TabItem>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
137 </TabControl>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
138 </metro:Window>