This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
99 lines (97 loc) · 3.87 KB
/
MainWindow.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
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
98
99
<Window
x:Class="LuckyMining.MainWindow"
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:local="clr-namespace:LuckyMining"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="1300"
Height="955"
MinWidth="300"
MinHeight="300"
MaxHeight="{x:Static SystemParameters.MaximizedPrimaryScreenHeight}"
AllowsTransparency="True"
Background="#181818"
ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
mc:Ignorable="d">
<Window.Resources>
<Style x:Key="Name_style" TargetType="ToolTip">
<Setter Property="Placement" Value="Right" />
<Setter Property="Height" Value="40" />
<Setter Property="Width" Value="100" />
<Setter Property="Background" Value="White" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="FontSize" Value="16" />
<Setter Property="PlacementRectangle" Value="60,0,0,0" />
<Setter Property="HorizontalOffset" Value="15" />
<Setter Property="VerticalOffset" Value="5" />
<Setter Property="HasDropShadow" Value="True" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</Window.Resources>
<Grid Background="#212121">
<Grid
Grid.Row="0"
Height="60"
VerticalAlignment="Top"
Background="#181818"
MouseLeftButtonDown="Grid_MouseLeftButtonDown"
MouseMove="Window_MouseMove">
<StackPanel
Margin="5"
HorizontalAlignment="Left"
Orientation="Horizontal">
<Label
Content="LuckyMining"
FontSize="30"
Foreground="White" />
<Grid>
<materialDesign:PackIcon
Width="45"
Height="45"
Foreground="White"
Kind="Github" />
<Button
Width="45"
Height="45"
Background="Transparent"
BorderBrush="Transparent"
Click="Button_Click" />
</Grid>
</StackPanel>
<DockPanel HorizontalAlignment="Right">
<!-- Minimize -->
<Button
VerticalAlignment="Center"
Background="{x:Null}"
BorderBrush="{x:Null}"
Click="Button_Click_3">
<materialDesign:PackIcon Foreground="White" Kind="WindowMinimize" />
</Button>
<!-- Maximize -->
<Button
VerticalAlignment="Center"
Background="{x:Null}"
BorderBrush="{x:Null}"
Click="Button_Click_4">
<materialDesign:PackIcon Foreground="White" Kind="WindowMaximize" />
</Button>
<!-- Exit -->
<Button
VerticalAlignment="Center"
Background="{x:Null}"
BorderBrush="{x:Null}"
Click="Button_Click_2">
<materialDesign:PackIcon Foreground="White" Kind="Close" />
</Button>
</DockPanel>
</Grid>
<Grid x:Name="grid" Margin="0,60,0,0" />
</Grid>
</Window>