<Window xmlns:props="clr-namespace:Ink_Canvas.Properties" x:Class="Ink_Canvas.Windows.SplashScreen"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Ink Canvas"
        WindowStyle="None"
        AllowsTransparency="True"
        Background="Transparent"
        WindowState="Maximized"
        Topmost="True"
        ShowInTaskbar="False"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen">
    <Grid>
        <!-- 启动图片容器 -->
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
            <!-- 启动图片（使用邻近缩放） -->
            <Image x:Name="StartupImage" 
                   Width="600" 
                   Height="450"
                   Stretch="Uniform"
                   RenderOptions.BitmapScalingMode="NearestNeighbor" />

            <!-- 版本号显示 - 右上角 -->
            <TextBlock x:Name="VersionTextBlock" 
                    FontSize="12" 
                    Foreground="FloralWhite" 
                    HorizontalAlignment="Right" 
                    VerticalAlignment="Top" 
                    Margin="0,80,60,0" 
                    Opacity="0.8" 
                    Panel.ZIndex="1000" />
        </Grid>
        
        <!-- 加载文本（带阴影） -->
        <TextBlock x:Name="LoadingText" 
                   Text="{x:Static props:HomeStrings.Splash_Starting}" 
                   FontSize="18" 
                   FontFamily="pack://application:,,,/Resources/Fonts/#LXGW WenKai TC"
                   FontWeight="SemiBold"
                   Foreground="White"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Margin="0,200,0,0">
            <TextBlock.Effect>
                <DropShadowEffect Color="Black" 
                                  Direction="270" 
                                  ShadowDepth="2" 
                                  BlurRadius="5" 
                                  Opacity="0.7"/>
            </TextBlock.Effect>
        </TextBlock>

        <!-- 进度条 -->
        <Grid x:Name="ProgressBarContainer"
              HorizontalAlignment="Center"
              VerticalAlignment="Center"
              Margin="0,276.5,0,0"
              Width="532"
              Height="10">
             <!-- 进度条填充 -->
             <Border x:Name="ProgressBarFill"
                      HorizontalAlignment="Left"
                      Width="0">
                 <Border.Style>
                     <Style TargetType="Border">
                         <Setter Property="CornerRadius" Value="0,0,7,7"/>
                     </Style>
                 </Border.Style>
             </Border>
            <!-- 进度条背景 -->
            <Border x:Name="ProgressBarBackground"
                     CornerRadius="7"
                     BorderThickness="1"
                     ClipToBounds="True"/>
        </Grid>
    </Grid>
</Window>