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