59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 <UserControl x:Class="SilverlightGlimpse.Controls.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 Width="700"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 Height="375"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 Margin="11"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 Background="LightYellow"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 BorderBrush="Red"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 BorderThickness="2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10 CornerRadius="20"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 Padding="11">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 <Grid x:Name="LayoutRoot">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 <Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14 <ColumnDefinition Width="200" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15 <ColumnDefinition Width="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 </Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 <Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 <RowDefinition Height="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20 </Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 <TextBlock Grid.ColumnSpan="2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 Margin="3.5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 VerticalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24 FontSize="18"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 Foreground="Red"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 Text="Exception Viewer" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 <ListBox x:Name="lbExceptions"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 Margin="3.5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 DisplayMemberPath="Message" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 <TextBlock x:Name="txtSourceLocation"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 Grid.ColumnSpan="2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 HorizontalAlignment="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36 VerticalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 FontSize="14" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38 <ScrollViewer Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39 Grid.Column="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 Margin="3.5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41 Background="White"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42 DataContext="{Binding ElementName=lbExceptions,
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
43 Path=SelectedItem}">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
44 <Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
45 <Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
46 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
47 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
48 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
49 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
50 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
51 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
52 </Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
53 <Rectangle Fill="BlanchedAlmond" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
54 <TextBlock FontSize="14"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
55 Text="Message"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
56 TextDecorations="Underline" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
57 <TextBlock Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
58 FontSize="11"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
59 Text="{Binding Path=Message}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
60 TextWrapping="Wrap" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
61
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
62 <Rectangle Grid.Row="2" Fill="BlanchedAlmond" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
63 <TextBlock Grid.Row="2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
64 Margin="0,11,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
65 FontSize="14"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
66 Text="Stack Trace"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
67 TextDecorations="Underline" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
68 <TextBlock Grid.Row="3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
69 FontSize="11"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
70 Text="{Binding Path=StackTrace}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
71 TextWrapping="Wrap" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
72
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
73 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
74 </ScrollViewer>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
75 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
76 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
77
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
78 </UserControl>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
79
|