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