view Glimpse/Glimpse Controls/GlimpseViewer.xaml @ 86:2084cfd89b80

solution user file containing startup object
author Steven Hollidge <stevenhollidge@hotmail.com>
date Tue, 24 Apr 2012 00:53:56 +0100
parents 3591c26bd63e
children
line wrap: on
line source

<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">
    <Grid x:Name="LayoutRoot" Background="Khaki">
        <Grid.Resources>
            <SolidColorBrush Color="LightGreen" x:Name="noExceptionsBrush" />
            <SolidColorBrush Color="Red" x:Name="hasExceptionsBrush" />
        </Grid.Resources>
        <Grid x:Name="layoutInstrumentPanel">
            <StackPanel Orientation="Horizontal">
                <Grid Margin="7">
                    <Ellipse x:Name="elpValidationExceptions" StrokeThickness="2" Stroke="Brown" Fill="LightGreen" Height="40" Width="40"/>
                    <TextBlock x:Name="tbValidationExceptions" Text="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold" ToolTipService.ToolTip="Binding Exception Count" />
                </Grid>
                <Grid Margin="7">
                    <Ellipse x:Name="elpUnhandledExceptions" StrokeThickness="2" Stroke="Brown" Fill="LightGreen" Height="40" Width="40" />
                    <TextBlock x:Name="tbUnhandledExceptions" Text="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold" ToolTipService.ToolTip="Unhandled Exception Count" />
                </Grid>
                <Button x:Name="btnExpand" Margin="7" Content="Expand" VerticalAlignment="Center" />
            </StackPanel>
        </Grid>
        <Grid x:Name="layoutViewer" Visibility="Collapsed">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock Margin="3.5" FontSize="18" Foreground="DarkGreen" Text="Glimpse Viewer" VerticalAlignment="Center" />
            <Button x:Name="btnContract" Margin="7" Content="Contract" VerticalAlignment="Center" HorizontalAlignment="Right" />
            <swc:TabControl Background="Khaki" Grid.Row="1" Height="390" Width="690" SelectedIndex="2">
                <swc:TabItem Header="Exceptions">
                    <local:ExceptionsViewer />
                </swc:TabItem>
                <swc:TabItem Header="Bindings with no Source">
                    <local:BrokenBindingsViewer />
                </swc:TabItem>
            </swc:TabControl>
        </Grid>
    </Grid>

</UserControl>