-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomMessageBox.xaml
63 lines (58 loc) · 2.8 KB
/
CustomMessageBox.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Window x:Class="CursedProjectAN.CustomMessageBox"
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"
xmlns:local="clr-namespace:CursedProjectAN"
mc:Ignorable="d"
Title="CustomMessageBox" Height="180" Width="300"
WindowStartupLocation="CenterScreen" WindowStyle="None"
ResizeMode="NoResize" AllowsTransparency="True"
Background="Transparent">
<Border Background="{StaticResource BrightOrange}" CornerRadius="12" MouseDown="Grid_MouseDown">
<Grid>
<Button Content="Да"
Name="YesButton"
Style="{StaticResource CustomMaterialDesignPaperButton}"
Background="{StaticResource BrightMagenta}"
BorderBrush="{StaticResource BrightMagenta}"
Foreground="{StaticResource BrightYellow}"
HorizontalAlignment="Right"
Margin="0,0,10,10"
VerticalAlignment="Bottom"
Width="60"
Click="YesButton_Click"/>
<Button Content="Нет"
Name="NoButton"
Style="{StaticResource CustomMaterialDesignPaperButton}"
Background="{StaticResource BrightYellow}"
BorderBrush="{StaticResource BrightMagenta}"
Foreground="{StaticResource BrightMagenta}"
HorizontalAlignment="Right"
Margin="0,0,75,10"
VerticalAlignment="Bottom"
Width="60"
Click="NoButton_Click"/>
<Button Content="Закрыть"
Name="CloseButton"
Style="{StaticResource CustomMaterialDesignPaperButton}"
Background="{StaticResource BrightMagenta}"
BorderBrush="{StaticResource BrightMagenta}"
Foreground="{StaticResource BrightLightYellow}"
HorizontalAlignment="Right"
Margin="0,0,10,10"
VerticalAlignment="Bottom"
Width="90"
Click="CloseButton_Click"/>
<TextBlock x:Name="TextMessageBox"
HorizontalAlignment="Center"
Foreground="{StaticResource BrightMagenta}"
FontSize="20"
VerticalAlignment="Center"
Margin="0,0,0,0"
TextWrapping="Wrap"
Text="Error"
/>
</Grid>
</Border>
</Window>