Mercurial > silverbladetech
view Glimpse/Glimpse Controls/LoadExceptionViewer.xaml @ 72:177a9d1eba10
Latest version
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 17:57:21 +0100 |
parents | 3591c26bd63e |
children |
line wrap: on
line source
<UserControl x:Class="Glimpse.LoadExceptionViewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Border Height="375" Width="700" Margin="11" BorderBrush="Red" BorderThickness="2" Padding="11" Background="LightYellow" CornerRadius="20"> <Grid x:Name="LayoutRoot"> <Grid.ColumnDefinitions> <ColumnDefinition Width="200" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Margin="3.5" Grid.ColumnSpan="2" FontSize="18" Foreground="Red" Text="Exception Viewer" VerticalAlignment="Center" /> <ListBox x:Name="lbExceptions" Margin="3.5" Grid.Row="1" DisplayMemberPath="Message" /> <TextBlock FontSize="14" Grid.ColumnSpan="2" x:Name="txtSourceLocation" VerticalAlignment="Center" HorizontalAlignment="Right" /> <ScrollViewer Background="White" DataContext="{Binding ElementName=lbExceptions, Path=SelectedItem}" Grid.Column="1" Grid.Row="1" Margin="3.5"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Rectangle Fill="BlanchedAlmond" /> <TextBlock Text="Message" TextDecorations="Underline" FontSize="14" /> <TextBlock Grid.Row="1" Text="{Binding Path=Message}" FontSize="11" TextWrapping="Wrap" /> <Rectangle Grid.Row="2" Fill="BlanchedAlmond" /> <TextBlock Grid.Row="2" Text="Stack Trace" TextDecorations="Underline" FontSize="14" Margin="0,11,0,0" /> <TextBlock Grid.Row="3" Text="{Binding Path=StackTrace}" FontSize="11" TextWrapping="Wrap" /> </Grid> </ScrollViewer> </Grid> </Border> </UserControl>