59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 <UserControl x:Class="Glimpse.LoadExceptionViewer"
|
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 <Border Height="375" Width="700" Margin="11" BorderBrush="Red" BorderThickness="2" Padding="11" Background="LightYellow" CornerRadius="20">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 <Grid x:Name="LayoutRoot">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 <Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 <ColumnDefinition Width="200" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 <ColumnDefinition Width="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 </Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10 <Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 <RowDefinition Height="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 </Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14 <TextBlock Margin="3.5" Grid.ColumnSpan="2" FontSize="18" Foreground="Red" Text="Exception Viewer" VerticalAlignment="Center" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 <ListBox x:Name="lbExceptions" Margin="3.5" Grid.Row="1" DisplayMemberPath="Message" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 <TextBlock FontSize="14" Grid.ColumnSpan="2" x:Name="txtSourceLocation" VerticalAlignment="Center" HorizontalAlignment="Right" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 <ScrollViewer Background="White" DataContext="{Binding ElementName=lbExceptions, Path=SelectedItem}" Grid.Column="1" Grid.Row="1" Margin="3.5">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20 <Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 <Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 </Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 <Rectangle Fill="BlanchedAlmond" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 <TextBlock Text="Message" TextDecorations="Underline" FontSize="14" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 <TextBlock Grid.Row="1" Text="{Binding Path=Message}" FontSize="11" TextWrapping="Wrap" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 <Rectangle Grid.Row="2" Fill="BlanchedAlmond" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 <TextBlock Grid.Row="2" Text="Stack Trace" TextDecorations="Underline" FontSize="14" Margin="0,11,0,0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 <TextBlock Grid.Row="3" Text="{Binding Path=StackTrace}" FontSize="11" TextWrapping="Wrap" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38 </ScrollViewer>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42 </UserControl>
|