-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathErrorWindow.xaml
More file actions
97 lines (88 loc) · 3.67 KB
/
ErrorWindow.xaml
File metadata and controls
97 lines (88 loc) · 3.67 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<Window x:Class="Revit_glTF_Exporter.ErrorWindow"
x:Name="ErrorWindow_Window"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Revit_glTF_Exporter"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True"
Background="{x:Null}"
mc:Ignorable="d"
ResizeMode="NoResize"
Topmost="True"
ShowInTaskbar="False"
Title="ErrorWindow"
Width="Auto"
Height="Auto"
SizeToContent="WidthAndHeight"
Style="{DynamicResource CustomWindowStyle}">
<Window.InputBindings>
<KeyBinding Key="Escape"
Command="Close" />
<KeyBinding Gesture="Enter"
Command="Open" />
</Window.InputBindings>
<Window.CommandBindings>
<CommandBinding Command="Close"
Executed="Close_Click" />
<CommandBinding Command="Open"
Executed="Button_Click" />
</Window.CommandBindings>
<Border
x:Name="ErrorWindow_Border"
Background="{DynamicResource BackgroundColor}"
BorderBrush="Transparent"
BorderThickness="1,1,1,1"
CornerRadius="8,8,8,8"
Margin="10,10,10,10"
MouseDown="Border_MouseDown">
<Border.Effect>
<DropShadowEffect BlurRadius="20"
Color="Gray"
Opacity="0.3"
ShadowDepth="0"
Direction="0"></DropShadowEffect>
</Border.Effect>
<Grid Background="Transparent" Margin="9,9,9,9" RenderOptions.BitmapScalingMode="HighQuality">
<TextBlock x:Name="labelMessage"
Margin="80,50,79,91"
TextWrapping="Wrap"
LineStackingStrategy="BlockLineHeight"
LineHeight="20"
Foreground="{DynamicResource MainGray}"
FontSize="15"
TextAlignment="Center"
VerticalAlignment="Center">
Message Here
</TextBlock>
<StackPanel Orientation="Horizontal"
VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Margin="0,0,0,15">
<Button Content="Report Error"
Style="{DynamicResource MainButtonStyle}"
Background="Transparent"
Foreground="{DynamicResource WindowButtonColor}"
Click="Click_Error"
Height="28"
Width="130"
VerticalAlignment="Top"/>
<Button Content="Accept"
Style="{DynamicResource MainButtonStyle}"
Click="Button_Click"
Height="28"
Width="130"
VerticalAlignment="Top"/>
</StackPanel>
</Grid>
</Border>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
</Window>