-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateDialog.xaml
More file actions
74 lines (67 loc) · 3.2 KB
/
CreateDialog.xaml
File metadata and controls
74 lines (67 loc) · 3.2 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
<Window x:Class="RestorePoint.CreateDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Create Restore Point" Height="200" Width="460"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
Background="#0D0D0D"
Foreground="#00E63C">
<Window.Resources>
<Style x:Key="DialogButton" TargetType="Button">
<Setter Property="Height" Value="40"/>
<Setter Property="FontFamily" Value="Consolas"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#0A2A0A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid Margin="24">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="16"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="RESTORE POINT NAME" FontFamily="Consolas"
FontSize="11" Foreground="#005A1A" Margin="0,0,0,8"/>
<TextBox Grid.Row="1" x:Name="NameInput"
Background="#111111" Foreground="#00E63C" CaretBrush="#00E63C"
BorderBrush="#00E63C" BorderThickness="1"
FontFamily="Consolas" FontSize="14" Padding="10,8"
Text="System Restore Point"/>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="Create"
Style="{StaticResource DialogButton}"
Background="#0D0D0D" Foreground="#00E63C"
BorderBrush="#00E63C" BorderThickness="1.5"
Click="CreateClick"/>
<Button Grid.Column="2" Content="Cancel"
Style="{StaticResource DialogButton}"
Background="#0D0D0D" Foreground="#555555"
BorderBrush="#333333" BorderThickness="1.5"
Click="CancelClick"/>
</Grid>
</Grid>
</Window>