improve:启动动画
This commit is contained in:
@@ -16,55 +16,54 @@
|
|||||||
|
|
||||||
<!-- 启动图片容器 -->
|
<!-- 启动图片容器 -->
|
||||||
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||||
<StackPanel>
|
<!-- 启动图片 -->
|
||||||
<!-- 启动图片 -->
|
<Image x:Name="StartupImage"
|
||||||
<Image x:Name="StartupImage"
|
Width="600"
|
||||||
Width="600"
|
Height="450"
|
||||||
Height="450"
|
Stretch="Uniform" />
|
||||||
Stretch="Uniform" />
|
|
||||||
|
|
||||||
<!-- 版本号显示 - 右上角 -->
|
<!-- 版本号显示 - 右上角 -->
|
||||||
<TextBlock x:Name="VersionTextBlock"
|
<TextBlock x:Name="VersionTextBlock"
|
||||||
FontSize="12"
|
FontSize="12"
|
||||||
Foreground="FloralWhite"
|
Foreground="FloralWhite"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Margin="0,-385,50,0"
|
Margin="0,10,50,0"
|
||||||
Opacity="0.8"
|
Opacity="0.8"
|
||||||
Panel.ZIndex="1000" />
|
Panel.ZIndex="1000" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<!-- 加载文本 -->
|
<!-- 加载文本 -->
|
||||||
<TextBlock x:Name="LoadingText"
|
<TextBlock x:Name="LoadingText"
|
||||||
Text="正在启动 Ink Canvas..."
|
Text="正在启动 Ink Canvas..."
|
||||||
FontSize="18"
|
FontSize="18"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Margin="0,-150,0,140" />
|
VerticalAlignment="Center"
|
||||||
|
Margin="0,200,0,0" />
|
||||||
|
|
||||||
<!-- 进度条 -->
|
<!-- 进度条 -->
|
||||||
<Grid HorizontalAlignment="Center"
|
<Grid HorizontalAlignment="Center"
|
||||||
Margin="1,-200,0,0"
|
VerticalAlignment="Center"
|
||||||
Width="532"
|
Margin="0,277,0,0"
|
||||||
Height="10">
|
Width="532"
|
||||||
<!-- 进度条填充 -->
|
Height="10">
|
||||||
<Border x:Name="ProgressBarFill"
|
<!-- 进度条填充 -->
|
||||||
Background="#41A5EE"
|
<Border x:Name="ProgressBarFill"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Width="0">
|
Width="0">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="CornerRadius" Value="0,0,7,7"/>
|
<Setter Property="CornerRadius" Value="0,0,7,7"/>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Style>
|
</Border.Style>
|
||||||
</Border>
|
</Border>
|
||||||
<!-- 进度条背景 -->
|
<!-- 进度条背景 -->
|
||||||
<Border x:Name="ProgressBarBackground"
|
<Border x:Name="ProgressBarBackground"
|
||||||
CornerRadius="7"
|
CornerRadius="7"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
ClipToBounds="True"/>
|
ClipToBounds="True"/>
|
||||||
</Grid>
|
|
||||||
</StackPanel>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -180,7 +180,7 @@ namespace Ink_Canvas.Windows
|
|||||||
LoadingText.FontWeight = FontWeights.SemiBold;
|
LoadingText.FontWeight = FontWeights.SemiBold;
|
||||||
LoadingText.Foreground = Brushes.White;
|
LoadingText.Foreground = Brushes.White;
|
||||||
LoadingText.HorizontalAlignment = HorizontalAlignment.Center;
|
LoadingText.HorizontalAlignment = HorizontalAlignment.Center;
|
||||||
LoadingText.Margin = new Thickness(0, -135, 145, 140);
|
LoadingText.Margin = new Thickness(0,200,140,4);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -189,7 +189,7 @@ namespace Ink_Canvas.Windows
|
|||||||
LoadingText.FontWeight = FontWeights.SemiBold;
|
LoadingText.FontWeight = FontWeights.SemiBold;
|
||||||
LoadingText.Foreground = Brushes.White;
|
LoadingText.Foreground = Brushes.White;
|
||||||
LoadingText.HorizontalAlignment = HorizontalAlignment.Center;
|
LoadingText.HorizontalAlignment = HorizontalAlignment.Center;
|
||||||
LoadingText.Margin = new Thickness(0, -150, 0, 140);
|
LoadingText.Margin = new Thickness(0,200,0,0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user