comparison 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
comparison
equal deleted inserted replaced
34:874e51b94623 35:83c1f62d9370
9 Width="700" 9 Width="700"
10 Height="475" 10 Height="475"
11 MinWidth="700" 11 MinWidth="700"
12 MinHeight="475" 12 MinHeight="475"
13 DataContext="{Binding MainWindowViewModel, 13 DataContext="{Binding MainWindowViewModel,
14 Source={StaticResource Locator}}" 14 Source={StaticResource Locator}}">
15 Icon="{StaticResource Mail}"> 15
16 <Window.Resources>
17 <Image x:Key="MailIcon" Source="mail.ico" />
18 </Window.Resources>
16 19
17 <TabControl Margin="{Binding Source={x:Static metro:Parameters.Instance}, Path=BoldPadding, Mode=OneWay}"> 20 <TabControl Margin="{Binding Source={x:Static metro:Parameters.Instance}, Path=BoldPadding, Mode=OneWay}">
18 <TabItem Header="dashboard"> 21 <TabItem Header="dashboard">
19 <Grid HorizontalAlignment="Center"> 22 <Grid HorizontalAlignment="Center">
20 <Grid.ColumnDefinitions> 23 <Grid.ColumnDefinitions>
52 Content="{Binding ZeroMqEndPoint.IsListening, 55 Content="{Binding ZeroMqEndPoint.IsListening,
53 Converter={converters:ToggleButtonToTextConverter}}" 56 Converter={converters:ToggleButtonToTextConverter}}"
54 IsChecked="{Binding ZeroMqEndPoint.IsListening}" 57 IsChecked="{Binding ZeroMqEndPoint.IsListening}"
55 IsEnabled="True" /> 58 IsEnabled="True" />
56 59
57 <c:MessageTile Grid.Row="1" 60 <c:MetroTile Grid.Row="1"
58 Grid.Column="0" 61 Grid.Column="0"
59 Background="{StaticResource MetroPurpleBrush}" 62 DisplayCount="{Binding MsmqEndPoint.DisplayCount}"
60 DisplayCount="{Binding MsmqEndPoint.DisplayCount, 63 DisplayIcon="{StaticResource Mail}"
61 Mode=TwoWay, 64 DisplayText="{Binding MsmqEndPoint.DisplayText}"
62 UpdateSourceTrigger=PropertyChanged}" 65 Margin="10"
63 DisplayIcon="{StaticResource Mail}" 66 Foreground="White"
64 DisplayText="{Binding MsmqEndPoint.DisplayText}" 67 ToolTip="{Binding MsmqEndPoint.ToolTip}" />
65 Foreground="White"
66 ToolTip="{Binding MsmqEndPoint.ToolTip}" />
67 68
68 <c:MessageTile Grid.Row="1"
69 Grid.Column="1"
70 Background="{StaticResource MetroGreenBrush}"
71 DisplayCount="{Binding RabbitEndPoint.DisplayCount}"
72 DisplayIcon="{StaticResource Mail}"
73 DisplayText="{Binding RabbitEndPoint.DisplayText}"
74 Foreground="White"
75 ToolTip="{Binding RabbitEndPoint.ToolTip}" />
76 69
77 <c:MessageTile Grid.Row="1" 70 <c:MetroTile Grid.Row="1"
78 Grid.Column="2" 71 Grid.Column="1"
79 Background="{StaticResource MetroOrangeBrush}" 72 Margin="10"
80 DisplayCount="{Binding ZeroMqEndPoint.DisplayCount}" 73 Background="{StaticResource MetroGreenBrush}"
81 DisplayIcon="{StaticResource Mail}" 74 DisplayCount="{Binding RabbitEndPoint.DisplayCount}"
82 DisplayText="{Binding ZeroMqEndPoint.DisplayText}" 75 DisplayIcon="{StaticResource Mail}"
83 Foreground="White" 76 DisplayText="{Binding RabbitEndPoint.DisplayText}"
84 ToolTip="{Binding ZeroMqEndPoint.ToolTip}" /> 77 Foreground="White"
78 ToolTip="{Binding RabbitEndPoint.ToolTip}" />
79
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
85 <ScrollViewer Grid.Row="2" 91 <ScrollViewer Grid.Row="2"
86 Grid.Column="0" 92 Grid.Column="0"
87 Xaml:XamlHelper.AutoScroll="{Binding MsmqEndPoint.IsLogChanged}"> 93 Xaml:XamlHelper.AutoScroll="{Binding MsmqEndPoint.IsLogChanged}">
88 <TextBlock Margin="10" 94 <TextBlock Margin="10"
89 Background="{StaticResource MetroGrayBrush}" 95 Background="{StaticResource MetroGrayBrush}"