-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplayMessageDetails.xaml
47 lines (47 loc) · 2.53 KB
/
DisplayMessageDetails.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<Window x:Class="RS.WPF.MessageDisplay.DisplayMessageDetails"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="Message" Height="600" Width="800" Background="WhiteSmoke"
SizeToContent="Height" WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="45"/>
</Grid.RowDefinitions>
<GroupBox Header="Message Details">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<GroupBox Name="GrpMessage" Grid.Row="0" FontSize="12" Background="LightCyan">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel>
<Label Name="LblMessage" FontWeight="Bold">Message</Label>
<TextBlock Name="TxtMessage" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
TextWrapping="Wrap" Padding="10"/>
</StackPanel>
</ScrollViewer>
</GroupBox>
<GroupBox Name="GrpInnerException" Grid.Row="1" FontSize="12" Background="LightYellow">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel>
<Label FontWeight="Bold">Inner Exception</Label>
<TextBlock Name="TxtInnerException" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
TextWrapping="Wrap" Padding="10"/>
</StackPanel>
</ScrollViewer>
</GroupBox>
</Grid>
</GroupBox>
<Canvas Grid.Row="1">
<Button Name="BtnCopyMessage" Canvas.Left="5" Canvas.Top="10" Height="30" Width="180"
FontFamily="Segoe UI" FontWeight="Bold" Click="BtnCopyMessage_Click" >Copy Message Contents</Button>
<Button Name="BtnClose" Canvas.Right="5" Canvas.Top="10" Height="30" Width="80"
FontFamily="Segoe UI" FontWeight="Bold" Click="BtnClose_Click" >Close</Button>
</Canvas>
</Grid>
</Window>