-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindowException.xaml
More file actions
58 lines (55 loc) · 1.91 KB
/
Copy pathWindowException.xaml
File metadata and controls
58 lines (55 loc) · 1.91 KB
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
48
49
50
51
52
53
54
55
56
57
58
<Window
x:Class="KLC_Proxy.WindowException"
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"
Title="Exception"
Width="700"
Height="300"
ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<!-- Info -->
<TextBlock
Margin="10"
FontSize="14"
Text="{Binding Exception.Message, Mode=OneWay, TargetNullValue=-, FallbackValue='Exception error here.'}"
TextWrapping="Wrap" />
<!-- Exception details -->
<TextBox
Grid.Row="1"
MinHeight="150"
Background="#EEEEEE"
HorizontalScrollBarVisibility="Auto"
IsReadOnly="true"
Text="{Binding DetailsText, Mode=OneWay, TargetNullValue=-}"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto" />
<!-- Close Button -->
<StackPanel
Grid.Row="2"
HorizontalAlignment="Right"
Orientation="Horizontal">
<Button
Margin="0,10,10,10"
Padding="5"
HorizontalAlignment="Right"
Click="OnExitAppClick"
Content="Exit Application" />
<Button
x:Name="btnContinue"
Margin="0,10,10,10"
Padding="5"
HorizontalAlignment="Right"
Click="OnContinueAppClick"
Content="Continue" />
</StackPanel>
</Grid>
</Window>