-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
154 lines (150 loc) · 10.6 KB
/
MainWindow.xaml
File metadata and controls
154 lines (150 loc) · 10.6 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<Window x:Class="LLC_MOD_Toolbox.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:LLC_MOD_Toolbox" xmlns:sys="clr-namespace:System;assembly=netstandard"
xmlns:controls="clr-namespace:LLC_MOD_Toolbox.Views.Controls"
xmlns:pageControls="clr-namespace:LLC_MOD_Toolbox.Views.Controls"
mc:Ignorable="d"
WindowStyle="None"
Title="都市零协会工具箱" Height="600" Width="960"
AllowsTransparency="True"
Background="Transparent"
MouseDown="WindowDragMove"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
MouseLeftButtonUp="Window_MouseLeftButtonUp"
ResizeMode="CanMinimize"
Loaded="WindowLoaded">
<Window.Resources>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
<Style x:Key="NoHover" TargetType="Button">
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Name="border" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="BlackWhite" TargetType="Button">
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Name="border" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<FontFamily x:Key="GlobalPreviewFont">/Fonts/subset/#Source Han Sans CN</FontFamily>
<sys:Double x:Key="GlobalPreviewFontSize">16</sys:Double>
<sys:Double x:Key="GlobalPreviewSmallFontSize">12</sys:Double>
<DropShadowEffect x:Key="ShadowForPreview"
Color="Black"
Opacity="0.75"
BlurRadius="2"
ShadowDepth="3"/>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="13*"/>
<ColumnDefinition Width="65*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="39*"/>
<RowDefinition Height="161*"/>
</Grid.RowDefinitions>
<Image x:Name="Background" HorizontalAlignment="Left" Height="600" VerticalAlignment="Top" Width="960" Source="Picture/Background.png" Grid.RowSpan="2" Grid.ColumnSpan="3">
<Image.Clip>
<RectangleGeometry Rect="0,0,960,600" RadiusX="20" RadiusY="20"/>
</Image.Clip>
</Image>
<Image x:Name="ButtonBackground" HorizontalAlignment="Left" Height="480" Margin="18,116,0,0" VerticalAlignment="Top" Width="162" Source="Picture/ButtonBackground.png" Grid.RowSpan="2" Grid.ColumnSpan="2"/>
<Image x:Name="TitleBar" HorizontalAlignment="Left" Height="87" VerticalAlignment="Top" Width="960" Grid.ColumnSpan="3" Margin="0,13,0,0" Source="Picture/TitleBar.png"/>
<Image x:Name="MinimizeHover" HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="0" IsHitTestVisible="False" Margin="573,16,0,0" Height="80" Width="81" Panel.ZIndex="5" Source="Picture/MinimizeHover.png" Grid.Column="2" />
<Button Grid.Column="2" HorizontalAlignment="Left" Margin="574,17,0,0" VerticalAlignment="Top" Height="78" Width="80" Opacity="1" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Style="{StaticResource NoHover}" Command="{Binding MinimizeCommand}">
<Button.Content>
<Image x:Name="MinimizeButton" Height="78" Width="80" Source="Picture/Minimize.png" />
</Button.Content>
<Button.Triggers>
<EventTrigger RoutedEvent="Button.MouseEnter">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MinimizeHover"
Storyboard.TargetProperty="Opacity"
From="0" To="1" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Button.MouseLeave">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MinimizeHover"
Storyboard.TargetProperty="Opacity"
From="1" To="0" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
<Image x:Name="CloseHover" HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="0" IsHitTestVisible="False" Margin="661,16,0,0" Height="80" Width="81" Panel.ZIndex="5" Source="Picture/MinimizeHover.png" Grid.Column="2" />
<Button Grid.Column="2" HorizontalAlignment="Left" Margin="662,17,0,0" VerticalAlignment="Top" Height="78" Width="80" Opacity="1" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Command="{Binding CloseCommand}" Style="{StaticResource NoHover}">
<Button.Content>
<Image x:Name="CloseButton" Height="78" Width="80" Source="Picture/Close.png" />
</Button.Content>
<Button.Triggers>
<EventTrigger RoutedEvent="Button.MouseEnter">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="CloseHover"
Storyboard.TargetProperty="Opacity"
From="0" To="1" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Button.MouseLeave">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="CloseHover"
Storyboard.TargetProperty="Opacity"
From="1" To="0" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
<Image x:Name="ControlBoard" Grid.Column="1" HorizontalAlignment="Left" Height="516" VerticalAlignment="Top" Width="796" Source="Picture/ControlBoard.png" Margin="142,84,0,0" Grid.RowSpan="2" Grid.ColumnSpan="2"/>
<Image x:Name="ZALogo" Visibility="Collapsed" HorizontalAlignment="Left" Height="123" Margin="7,-8,0,0" VerticalAlignment="Top" Width="123" Source="Picture/ZALogoA.png" Grid.Column="1"/>
<Image x:Name="MirrorChyanLogo" Visibility="Collapsed" IsHitTestVisible="False" Height="48" VerticalAlignment="Top" Source="Picture/MirrorChyan.png" Margin="67,52,30,0" Grid.Column="1"/>
<controls:InstallTabStrip Grid.Column="2" Grid.Row="1" Margin="0,0,0,0"/>
<controls:NavigationMenu Grid.Column="1" Grid.Row="1"/>
<pageControls:AutoInstallPageControl x:Name="AutoInstallPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:FontReplacePageControl x:Name="FontReplacePage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:LinkPageControl x:Name="LinkPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:GreytestPageControl x:Name="GreytestPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:SettingsPageControl x:Name="SettingsPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:AboutPageControl x:Name="AboutPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:EasterEggPageControl x:Name="EEPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:GachaPageControl x:Name="GachaPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:AnnouncementPageControl x:Name="AnnouncementPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<pageControls:SkinPageControl x:Name="SkinPage" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1"/>
<Button Grid.Column="1" HorizontalAlignment="Center" Margin="0,350,0,0" Grid.Row="1" VerticalAlignment="Top" Height="41" Width="155" Style="{StaticResource BlackWhite}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" PreviewMouseLeftButtonDown="WhiteBlackClickDouble" />
<Button Grid.Column="1" HorizontalAlignment="Center" Margin="0,400,0,0" Grid.Row="1" VerticalAlignment="Top" Height="41" Width="155" Style="{StaticResource BlackWhite}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" PreviewMouseLeftButtonDown="WhiteBlackClickDouble"/>
<Grid Panel.ZIndex="100000" x:Name="OverlayGrid" Visibility="{Binding IsOverlayVisible, Converter={StaticResource BooleanToVisibilityConverter}}" Background="Transparent" Grid.ColumnSpan="3" Margin="0,-2,-1,2" Grid.RowSpan="2">
<Label Content="正在加载……" HorizontalAlignment="Left" IsHitTestVisible="False" VerticalAlignment="Top" Height="68" Width="264" FontSize="40" Foreground="#FFFFEED4" FontFamily="/Fonts/subset/#Source Han Sans CN" FontWeight="Heavy" Margin="502,21,0,0"/>
</Grid>
</Grid>
</Window>