-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
85 lines (77 loc) · 4.25 KB
/
Copy pathMainWindow.xaml
File metadata and controls
85 lines (77 loc) · 4.25 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
<Window x:Class="ReTranslator.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:ReTranslator"
mc:Ignorable="d"
MouseLeftButtonDown="Window_Drag"
Title="ReTranslator" Height="600" Width="900" WindowStyle="None" ResizeMode="NoResize" AllowsTransparency="True" Background="Transparent" WindowStartupLocation="CenterScreen">
<Border Background="Transparent">
<Border Background="#FF37A0EA" CornerRadius="20" BorderThickness="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Rectangle Height="45" Width="45" RadiusX="10" RadiusY="10" VerticalAlignment="Center">
<Rectangle.Fill>
<ImageBrush ImageSource="/Assets/icon.png"/>
</Rectangle.Fill>
</Rectangle>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition Height="70"/>
<RowDefinition Height="*"/>
<RowDefinition Height="70"/>
</Grid.RowDefinitions>
<Button Background="Transparent" Height="50" Width="50" BorderThickness="0" Click="showMainPage" Tag="主页面">
<Button.Content>
<Image Source="/Assets/play.png"></Image>
</Button.Content>
</Button>
<Button Grid.Row="1" Background="Transparent" Height="50" Width="50" BorderThickness="0" Click="showSettingsPage" Tag="设置页面">
<Button.Content>
<Image Source="/Assets/settings.png" Stretch="Uniform"></Image>
</Button.Content>
</Button>
<Button Grid.Row="3" Background="Transparent" Height="50" Width="50" BorderThickness="0" Click="showAboutPage" Tag="关于页面">
<Button.Content>
<Image Source="/Assets/about.png"></Image>
</Button.Content>
</Button>
</Grid>
</Grid>
<Border Grid.Column="1" Background="Transparent">
<Border Background="White" CornerRadius="20" BorderThickness="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="55"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<TextBlock x:Name="Title" Text="ReTranslator主页面" FontSize="30" FontStyle="Italic" FontWeight="Bold" Height="55" VerticalAlignment="Top" Margin="30 10 0 0"/>
<Button HorizontalAlignment="Right"
Style="{StaticResource MinimizeButtonStyle}"
Click="Minimize"
Margin="0 0 30 0"/>
<Button HorizontalAlignment="Right"
Style="{StaticResource CloseButtonStyle}"
Click="CloseApp"/>
</Grid>
<Frame x:Name="ContentFrame" Grid.Row="1"
NavigationUIVisibility="Hidden"
Background="White"/>
</Grid>
</Border>
</Border>
</Grid>
</Border>
</Border>
</Window>