Mercurial > silverbladetech
comparison delete me/Glimpse/Glimpse Controls/ExceptionsViewer.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 | |
2 x:Class="Glimpse.ExceptionsViewer" | |
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
5 <Grid x:Name="LayoutRoot" Background="White"> | |
6 <Grid.ColumnDefinitions> | |
7 <ColumnDefinition Width="250" /> | |
8 <ColumnDefinition Width="*" /> | |
9 </Grid.ColumnDefinitions> | |
10 <Grid.RowDefinitions> | |
11 <RowDefinition Height="Auto" /> | |
12 <RowDefinition Height="*" /> | |
13 <RowDefinition Height="Auto" /> | |
14 </Grid.RowDefinitions> | |
15 | |
16 <TextBlock Margin="3.5" Grid.ColumnSpan="2" FontSize="18" Foreground="Red" Text="Exceptions Viewer" VerticalAlignment="Center" /> | |
17 | |
18 <ListBox SelectionChanged="lbExceptions_SelectionChanged" ItemsSource="{Binding}" x:Name="lbExceptions" Margin="3.5" Grid.Row="1" /> | |
19 | |
20 <ScrollViewer DataContext="{Binding ElementName=lbExceptions, Path=SelectedItem}" Grid.Column="1" Grid.Row="1" Margin="3.5"> | |
21 <Grid> | |
22 <Grid.RowDefinitions> | |
23 <RowDefinition Height="Auto" /> | |
24 <RowDefinition Height="Auto" /> | |
25 <RowDefinition Height="Auto" /> | |
26 <RowDefinition Height="Auto" /> | |
27 <RowDefinition Height="Auto" /> | |
28 <RowDefinition Height="Auto" /> | |
29 <RowDefinition Height="Auto" /> | |
30 <RowDefinition Height="Auto" /> | |
31 </Grid.RowDefinitions> | |
32 | |
33 <Rectangle Fill="BlanchedAlmond" /> | |
34 <TextBlock x:Name="tbAction" Text="Action" TextDecorations="Underline" FontSize="14" /> | |
35 <TextBlock Visibility="{Binding ElementName=tbAction, Path=Visibility}" Grid.Row="1" Text="{Binding Path=Action}" FontSize="11" TextWrapping="Wrap" /> | |
36 | |
37 <Rectangle Grid.Row="2" Fill="BlanchedAlmond" /> | |
38 <TextBlock Visibility="{Binding ElementName=tbAction, Path=Visibility}" Grid.Row="2" Text="Control Name" TextDecorations="Underline" Margin="0,7,0,0" FontSize="14" /> | |
39 <TextBlock Visibility="{Binding ElementName=tbAction, Path=Visibility}" Grid.Row="3" Text="{Binding Path=ControlName}" FontSize="11" TextWrapping="Wrap" /> | |
40 | |
41 <Rectangle Grid.Row="4" Fill="BlanchedAlmond" /> | |
42 <TextBlock Grid.Row="4" Text="Message" TextDecorations="Underline" FontSize="14" Margin="0,7,0,0" /> | |
43 <TextBlock Grid.Row="5" Text="{Binding Path=Exception.Message}" FontSize="11" TextWrapping="Wrap" /> | |
44 | |
45 <Rectangle Grid.Row="6" Fill="BlanchedAlmond" /> | |
46 <TextBlock Grid.Row="6" Text="Stack Trace" TextDecorations="Underline" FontSize="14" Margin="0,7,0,0" /> | |
47 <TextBlock Grid.Row="7" Text="{Binding Path=Exception.StackTrace}" FontSize="11" TextWrapping="Wrap" /> | |
48 | |
49 </Grid> | |
50 </ScrollViewer> | |
51 <Button Grid.Column="1" Grid.Row="2" Click="ClearExceptions_Click" Padding="7" Content="Clear Exceptions" Margin="11" HorizontalAlignment="Right" VerticalAlignment="Center" /> | |
52 </Grid> | |
53 | |
54 </UserControl> |