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