comparison 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 xmlns:local="clr-namespace:Glimpse" xmlns:swc="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="Glimpse.GlimpseViewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2 <Grid x:Name="LayoutRoot" Background="Khaki">
3 <Grid.Resources>
4 <SolidColorBrush Color="LightGreen" x:Name="noExceptionsBrush" />
5 <SolidColorBrush Color="Red" x:Name="hasExceptionsBrush" />
6 </Grid.Resources>
7 <Grid x:Name="layoutInstrumentPanel">
8 <StackPanel Orientation="Horizontal">
9 <Grid Margin="7">
10 <Ellipse x:Name="elpValidationExceptions" StrokeThickness="2" Stroke="Brown" Fill="LightGreen" Height="40" Width="40"/>
11 <TextBlock x:Name="tbValidationExceptions" Text="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold" ToolTipService.ToolTip="Binding Exception Count" />
12 </Grid>
13 <Grid Margin="7">
14 <Ellipse x:Name="elpUnhandledExceptions" StrokeThickness="2" Stroke="Brown" Fill="LightGreen" Height="40" Width="40" />
15 <TextBlock x:Name="tbUnhandledExceptions" Text="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold" ToolTipService.ToolTip="Unhandled Exception Count" />
16 </Grid>
17 <Button x:Name="btnExpand" Margin="7" Content="Expand" VerticalAlignment="Center" />
18 </StackPanel>
19 </Grid>
20 <Grid x:Name="layoutViewer" Visibility="Collapsed">
21 <Grid.RowDefinitions>
22 <RowDefinition Height="Auto" />
23 <RowDefinition Height="*" />
24 </Grid.RowDefinitions>
25 <TextBlock Margin="3.5" FontSize="18" Foreground="DarkGreen" Text="Glimpse Viewer" VerticalAlignment="Center" />
26 <Button x:Name="btnContract" Margin="7" Content="Contract" VerticalAlignment="Center" HorizontalAlignment="Right" />
27 <swc:TabControl Background="Khaki" Grid.Row="1" Height="390" Width="690" SelectedIndex="2">
28 <swc:TabItem Header="Exceptions">
29 <local:ExceptionsViewer />
30 </swc:TabItem>
31 <swc:TabItem Header="Bindings with no Source">
32 <local:BrokenBindingsViewer />
33 </swc:TabItem>
34 </swc:TabControl>
35 </Grid>
36 </Grid>
37
38 </UserControl>