Mercurial > silverbladetech
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightGlimpse/Controls/LoadExceptionViewer.xaml Sat Apr 21 19:20:28 2012 +0100 @@ -0,0 +1,79 @@ +<UserControl x:Class="SilverlightGlimpse.Controls.LoadExceptionViewer" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> + <Border Width="700" + Height="375" + Margin="11" + Background="LightYellow" + BorderBrush="Red" + BorderThickness="2" + CornerRadius="20" + Padding="11"> + <Grid x:Name="LayoutRoot"> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="200" /> + <ColumnDefinition Width="*" /> + </Grid.ColumnDefinitions> + <Grid.RowDefinitions> + <RowDefinition Height="Auto" /> + <RowDefinition Height="*" /> + </Grid.RowDefinitions> + <TextBlock Grid.ColumnSpan="2" + Margin="3.5" + VerticalAlignment="Center" + FontSize="18" + Foreground="Red" + Text="Exception Viewer" /> + + <ListBox x:Name="lbExceptions" + Grid.Row="1" + Margin="3.5" + DisplayMemberPath="Message" /> + + <TextBlock x:Name="txtSourceLocation" + Grid.ColumnSpan="2" + HorizontalAlignment="Right" + VerticalAlignment="Center" + FontSize="14" /> + <ScrollViewer Grid.Row="1" + Grid.Column="1" + Margin="3.5" + Background="White" + DataContext="{Binding ElementName=lbExceptions, + Path=SelectedItem}"> + <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 FontSize="14" + Text="Message" + TextDecorations="Underline" /> + <TextBlock Grid.Row="1" + FontSize="11" + Text="{Binding Path=Message}" + TextWrapping="Wrap" /> + + <Rectangle Grid.Row="2" Fill="BlanchedAlmond" /> + <TextBlock Grid.Row="2" + Margin="0,11,0,0" + FontSize="14" + Text="Stack Trace" + TextDecorations="Underline" /> + <TextBlock Grid.Row="3" + FontSize="11" + Text="{Binding Path=StackTrace}" + TextWrapping="Wrap" /> + + </Grid> + </ScrollViewer> + </Grid> + </Border> + +</UserControl> +