annotate Messaging/Server/UI/MainWindow.xaml @ 52:6235c5f0d9db

Original styles
author Steven Hollidge <stevenhollidge@hotmail.com>
date Thu, 19 Apr 2012 11:45:38 +0100
parents c8c79f05d76f
children
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,
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
14 Source={StaticResource Locator}}"
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
15 Icon="mail.ico">
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
16
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
17
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
18 <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
19 <TabItem Header="dashboard">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
20 <Grid HorizontalAlignment="Center">
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
21 <Grid.ColumnDefinitions>
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 <ColumnDefinition Width="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
25 </Grid.ColumnDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
26 <Grid.RowDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
27 <RowDefinition Height="Auto" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
28 <RowDefinition Height="220" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
29 <RowDefinition Height="*" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
30 <RowDefinition Height="50" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
31 </Grid.RowDefinitions>
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
32
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
33 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
34 Grid.Column="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
35 Margin="10,10,10,0"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
36 Content="{Binding MsmqEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
37 Converter={converters:ToggleButtonToTextConverter}}"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
38 IsChecked="{Binding MsmqEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
39 IsEnabled="True"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
40 IsThreeState="False" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
41
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
42 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
43 Grid.Column="1"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
44 Margin="10,10,10,0"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
45 Content="{Binding RabbitEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
46 Converter={converters:ToggleButtonToTextConverter}}"
27
96fdf58e05b4 Server working with sockets and rabbitmq
adminsh@apollo
parents: 26
diff changeset
47 IsChecked="{Binding RabbitEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
48 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
49
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
50 <ToggleButton Grid.Row="0"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
51 Grid.Column="2"
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
52 Margin="10,10,10,0"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
53 Content="{Binding ZeroMqEndPoint.IsListening,
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
54 Converter={converters:ToggleButtonToTextConverter}}"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
55 IsChecked="{Binding ZeroMqEndPoint.IsListening}"
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
56 IsEnabled="True" />
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
57
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
58 <c:MetroTile Grid.Row="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
59 Grid.Column="0"
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
60 Margin="10"
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
61 DisplayCount="{Binding MsmqEndPoint.DisplayCount}"
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
62 DisplayIcon="mail.ico"
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
63 DisplayText="{Binding MsmqEndPoint.DisplayText}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
64 ToolTip="{Binding MsmqEndPoint.ToolTip}" />
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
65
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
66
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
67 <c:MetroTile Grid.Row="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
68 Grid.Column="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
69 Margin="10"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
70 Background="{StaticResource MetroGreenBrush}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
71 DisplayCount="{Binding RabbitEndPoint.DisplayCount}"
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
72 DisplayIcon="mail.ico"
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
73 DisplayText="{Binding RabbitEndPoint.DisplayText}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
74 ToolTip="{Binding RabbitEndPoint.ToolTip}" />
26
045dac571339 Working on data binding to a user control
adminsh@apollo
parents:
diff changeset
75
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
76 <c:MetroTile Grid.Row="1"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
77 Grid.Column="2"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
78 Margin="10"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
79 Background="{StaticResource MetroOrangeBrush}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
80 DisplayCount="{Binding ZeroMqEndPoint.DisplayCount}"
36
c8c79f05d76f WORKING VERSION! HIGH FIVE!
adminsh@apollo
parents: 35
diff changeset
81 DisplayIcon="mail.ico"
35
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
82 DisplayText="{Binding ZeroMqEndPoint.DisplayText}"
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
83 ToolTip="{Binding ZeroMqEndPoint.ToolTip}" />
83c1f62d9370 All working except image so far
adminsh@apollo
parents: 31
diff changeset
84
27
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"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
87 Xaml:XamlHelper.AutoScroll="{Binding MsmqEndPoint.IsLogChanged}">
27
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"
29
9919ee227c93 msmq added
adminsh@apollo
parents: 27
diff changeset
91 Text="{Binding MsmqEndPoint.DisplayLog}"
27
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"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
105 Xaml:XamlHelper.AutoScroll="{Binding ZeroMqEndPoint.IsLogChanged}">
27
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"
31
7d9de5746f18 Working version
adminsh@apollo
parents: 29
diff changeset
111 Text="{Binding ZeroMqEndPoint.DisplayLog}"
27
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>