Files
Better-Seewo/Installer/MainWindow.xaml

63 lines
3.5 KiB
Plaintext
Raw Normal View History

<Window x:Class="BetterSeewoInstaller.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Better-Seewo 安装程序"
Width="520" Height="420"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
ResizeMode="NoResize">
<Border Background="{StaticResource BackgroundBrush}" CornerRadius="{StaticResource CornerRadiusLarge}"
BorderBrush="{StaticResource BorderBrush}" BorderThickness="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="48"/>
<RowDefinition Height="*"/>
<RowDefinition Height="56"/>
</Grid.RowDefinitions>
<!-- 自定义标题栏(可拖动) -->
<Border Grid.Row="0" CornerRadius="{StaticResource CornerRadiusLarge}" MouseLeftButtonDown="TitleBar_MouseLeftButtonDown">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="16,0">
<TextBlock Text="Better-Seewo" FontSize="15" FontWeight="SemiBold" Foreground="{StaticResource AccentBrush}" VerticalAlignment="Center"/>
<TextBlock Text=" 安装程序" FontSize="13" Foreground="{StaticResource TextSecondaryBrush}" VerticalAlignment="Center" Margin="6,0,0,0"/>
</StackPanel>
<Button x:Name="BtnClose" Grid.Column="0" Content="✕" HorizontalAlignment="Right"
Width="32" Height="32" Background="Transparent" Foreground="{StaticResource TextSecondaryBrush}"
BorderThickness="0" FontSize="13" Cursor="Hand" Click="BtnClose_Click"
Margin="0,0,8,0" VerticalAlignment="Center"/>
</Grid>
</Border>
<!-- 内容区域(带动画) -->
<Border Grid.Row="1" ClipToBounds="True">
<ContentControl x:Name="PageContent" Margin="24,0"/>
</Border>
<!-- 底部按钮栏 -->
<Border Grid.Row="2" Background="{StaticResource SurfaceBrush}"
CornerRadius="0,0,{StaticResource CornerRadiusLarge},{StaticResource CornerRadiusLarge}"
BorderBrush="{StaticResource BorderBrush}" BorderThickness="0,1,0,0">
<Grid Margin="24,0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBlock x:Name="StepText" Text="第 1 步,共 3 步" FontSize="12" Foreground="{StaticResource TextSecondaryBrush}" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<Button x:Name="BtnBack" Content="上一步" Style="{StaticResource SecondaryButton}"
Click="BtnBack_Click" Margin="0,0,12,0" Visibility="Collapsed"/>
<Button x:Name="BtnNext" Content="下一步" Style="{StaticResource PrimaryButton}"
Click="BtnNext_Click"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Border>
</Window>