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