增加了初始弹窗,但是没有成功
更改了CAN和LIN协调 更改了配置程序的名称顺序
This commit is contained in:
64
CapMachine.Wpf/Views/SplashScreenView.xaml
Normal file
64
CapMachine.Wpf/Views/SplashScreenView.xaml
Normal file
@@ -0,0 +1,64 @@
|
||||
<sync:ChromelessWindow
|
||||
x:Class="CapMachine.Wpf.Views.SplashScreenView"
|
||||
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:local="clr-namespace:CapMachine.Wpf.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
xmlns:sync="http://schemas.syncfusion.com/wpf"
|
||||
x:Name="ChromelessWindow"
|
||||
Width="940"
|
||||
Height="550"
|
||||
ResizeMode="NoResize"
|
||||
ShowMaximizeButton="False"
|
||||
TitleBarHeight="0"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
mc:Ignorable="d">
|
||||
<prism:Dialog.WindowStyle>
|
||||
<Style TargetType="Window">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="SizeToContent" Value="WidthAndHeight" />
|
||||
</Style>
|
||||
</prism:Dialog.WindowStyle>
|
||||
<sync:ChromelessWindow.Triggers>
|
||||
<EventTrigger RoutedEvent="Loaded">
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<ThicknessAnimation
|
||||
Storyboard.TargetName="ChromelessWindow"
|
||||
Storyboard.TargetProperty="Margin"
|
||||
From="300,200"
|
||||
To="0"
|
||||
Duration="0:0:0.45" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
</sync:ChromelessWindow.Triggers>
|
||||
<Grid Margin="-10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Image
|
||||
Grid.RowSpan="2"
|
||||
Source="/Assets/Images/Logo.png"
|
||||
Stretch="UniformToFill" />
|
||||
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Margin="50"
|
||||
VerticalAlignment="Bottom">
|
||||
<TextBlock
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"
|
||||
Text="{Binding DisplayText}" />
|
||||
<sync:SfLinearProgressBar
|
||||
Margin="0,20"
|
||||
IsIndeterminate="True"
|
||||
ProgressColor="white" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</sync:ChromelessWindow>
|
||||
Reference in New Issue
Block a user