Mercurial > silverbladetech
diff delete me/Glimpse/Glimpse Controls/LoadExceptionViewer.xaml @ 59:3591c26bd63e
MVVMLight added
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sat, 21 Apr 2012 19:20:28 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/delete me/Glimpse/Glimpse Controls/LoadExceptionViewer.xaml Sat Apr 21 19:20:28 2012 +0100 @@ -0,0 +1,42 @@ +<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>