forked from gucooing/Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
135 lines (130 loc) · 4.88 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<Window
x:Class="Launcher.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:control="clr-namespace:Launcher.Control"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Launcher"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
Title="MainWindow"
Width="800"
Height="450"
ResizeMode="NoResize"
Topmost="False"
mc:Ignorable="d">
<WindowChrome.WindowChrome>
<WindowChrome GlassFrameThickness="1" NonClientFrameEdges="None" />
</WindowChrome.WindowChrome>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="220" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid Background="#f3f6fc">
<Grid.RowDefinitions>
<RowDefinition Height="60" />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel Margin="0,30,0,0">
<TextBlock
HorizontalAlignment="Center"
FontSize="20"
FontWeight="Bold"
Text="Launcher" />
</StackPanel>
<ListBox
x:Name="nav"
Grid.Row="1"
Padding="10"
Background="Transparent"
BorderThickness="0"
ItemContainerStyle="{DynamicResource NavigationItemContainerStyle}"
SelectedIndex="0"
SelectionChanged="ListBox_SelectionChanged">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock
Margin="0,0,8,0"
VerticalAlignment="Center"
FontFamily="{StaticResource remix}"
FontSize="18"
Text="" />
<TextBlock Text="开始" />
</StackPanel>
</ListBoxItem>
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock
Margin="0,0,8,0"
VerticalAlignment="Center"
FontFamily="{StaticResource remix}"
FontSize="18"
Text="" />
<TextBlock Text="设置" />
</StackPanel>
</ListBoxItem>
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock
Margin="0,0,8,0"
VerticalAlignment="Center"
FontFamily="{StaticResource remix}"
FontSize="18"
Text="" />
<TextBlock Text="关于" />
</StackPanel>
</ListBoxItem>
</ListBox>
<Button
Grid.Row="1"
Width="50"
Margin="16"
Padding="8"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
pu:ButtonHelper.ClickBackground="#88FFEBEE"
pu:ButtonHelper.CornerRadius="18"
pu:ButtonHelper.HoverBackground="#ffebee"
Background="Transparent"
BorderThickness="0"
Click="Button_Click"
FontFamily="{StaticResource remix}"
FontSize="14"
Foreground="#C62828">
<!--<StackPanel Orientation="Horizontal">-->
<TextBlock
VerticalAlignment="Center"
FontFamily="{StaticResource remix}"
FontSize="18"
Text="" />
<!--<TextBlock Text="退出" />-->
<!--</StackPanel>-->
</Button>
</Grid>
<Grid
x:Name="dialogHost"
Grid.ColumnSpan="2"
Panel.ZIndex="100">
<control:ServerEditControl />
</Grid>
<StackPanel
xmlns:control="clr-namespace:Launcher.Control"
x:Name="sb_container"
Grid.ColumnSpan="2"
Margin="20"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Panel.ZIndex="10">
<control:SnackBar
ActionStr="按钮"
Msg="Message!!"
Visibility="Collapsed" />
</StackPanel>
<Frame
Name="rootFrame"
Grid.Column="1"
NavigationUIVisibility="Hidden"
Source="/View/Home.xaml" />
</Grid>
</Window>