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