comparison delete me/Glimpse/Glimpse Controls/GlimpseViewer.xaml @ 59:3591c26bd63e

MVVMLight added
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sat, 21 Apr 2012 19:20:28 +0100
parents
children
comparison
equal deleted inserted replaced
58:241e2f22ed3c 59:3591c26bd63e
1 <UserControl x:Class="Glimpse.GlimpseViewer"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:local="clr-namespace:Glimpse"
5 xmlns:swc="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">
6 <Grid x:Name="LayoutRoot" Background="Khaki">
7 <Grid.Resources>
8 <SolidColorBrush x:Name="noExceptionsBrush" Color="LightGreen" />
9 <SolidColorBrush x:Name="hasExceptionsBrush" Color="Red" />
10 </Grid.Resources>
11 <Grid x:Name="layoutInstrumentPanel">
12 <StackPanel Orientation="Horizontal">
13 <Grid Margin="7">
14 <Ellipse x:Name="elpValidationExceptions"
15 Width="40"
16 Height="40"
17 Fill="LightGreen"
18 Stroke="Brown"
19 StrokeThickness="2" />
20 <TextBlock x:Name="tbValidationExceptions"
21 HorizontalAlignment="Center"
22 VerticalAlignment="Center"
23 FontSize="12"
24 FontWeight="Bold"
25 Text="0"
26 ToolTipService.ToolTip="Binding Exception Count" />
27 </Grid>
28 <Grid Margin="7">
29 <Ellipse x:Name="elpUnhandledExceptions"
30 Width="40"
31 Height="40"
32 Fill="LightGreen"
33 Stroke="Brown"
34 StrokeThickness="2" />
35 <TextBlock x:Name="tbUnhandledExceptions"
36 HorizontalAlignment="Center"
37 VerticalAlignment="Center"
38 FontSize="12"
39 FontWeight="Bold"
40 Text="0"
41 ToolTipService.ToolTip="Unhandled Exception Count" />
42 </Grid>
43 <Button x:Name="btnExpand"
44 Margin="7"
45 VerticalAlignment="Center"
46 Content="Expand" />
47 </StackPanel>
48 </Grid>
49 <Grid x:Name="layoutViewer" Visibility="Collapsed">
50 <Grid.RowDefinitions>
51 <RowDefinition Height="Auto" />
52 <RowDefinition Height="*" />
53 </Grid.RowDefinitions>
54 <TextBlock Margin="3.5"
55 VerticalAlignment="Center"
56 FontSize="18"
57 Foreground="DarkGreen"
58 Text="Glimpse Viewer" />
59 <Button x:Name="btnContract"
60 Margin="7"
61 HorizontalAlignment="Right"
62 VerticalAlignment="Center"
63 Content="Contract" />
64 <swc:TabControl Grid.Row="1"
65 Width="690"
66 Height="390"
67 Background="Khaki"
68 SelectedIndex="2">
69 <swc:TabItem Header="Exceptions">
70 <local:ExceptionsViewer />
71 </swc:TabItem>
72 <swc:TabItem Header="Bindings with no Source">
73 <local:BrokenBindingsViewer />
74 </swc:TabItem>
75 </swc:TabControl>
76 </Grid>
77 </Grid>
78
79 </UserControl>