alielie
2025-11-25 006c98e5650b530e5220f279c1e803fefe69d40d
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
<pu:WindowX x:Class="HMI.UI.MaskWindow"
        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:HMI.UI"
        mc:Ignorable="d"
        xmlns:pw="https://opensource.panuon.com/wpf"
        xmlns:pu="https://opensource.panuon.com/wpf-ui"
        pu:WindowXCaption.Buttons="None"
        pu:WindowXCaption.Height="0"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        CanClose="False"
        MinWidth="300"
        MinHeight="0"
        Width="Auto"
        x:Name="self"
        WindowStartupLocation="CenterOwner">
    <WindowChrome.WindowChrome>
        <WindowChrome GlassFrameThickness="-1"/>
    </WindowChrome.WindowChrome>
    <!--<Window.Style>
        <Style TargetType="Window">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Status}" Value="Info">
                    <Setter Property="Background" Value="{StaticResource VerBar}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Window.Style>-->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border Padding="10,5,0,5" Background="{StaticResource PrimaryColor}" CornerRadius="5,5,0,0">
            <Label Padding="5" FontSize="14" Margin="0" Foreground="#FFF" Content="{DynamicResource App.PleaseWait}"/>
        </Border>
 
        <StackPanel Grid.Row="1" Margin="20" Orientation="Horizontal" VerticalAlignment="Center"
                    HorizontalAlignment="Center">
            <TextBlock FontSize="45" 
                       FontFamily="{StaticResource iconfont}" Foreground="{StaticResource PrimaryColor}" 
                       RenderTransformOrigin="0.5,0.5"
                       VerticalAlignment="Center" Text="&#xe891;">
                <TextBlock.RenderTransform>
                    <RotateTransform x:Name="MyAnimatedTransform" Angle="0" />
                </TextBlock.RenderTransform>
                <TextBlock.Triggers>
                    <EventTrigger RoutedEvent="TextBlock.Loaded">
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation 
                                Storyboard.TargetName="MyAnimatedTransform"
                                Storyboard.TargetProperty="(RotateTransform.Angle)"
                                        From="0" To="360" Duration="0:0:3"
                                        RepeatBehavior="Forever"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </TextBlock.Triggers>
            </TextBlock>
 
            <Label x:Name="label" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" 
                   FontSize="20" FontWeight="Bold" Margin="20,0,0,0" />
        </StackPanel>
 
    </Grid>
    <!--<Grid>
        <Label x:Name="label" 
               Margin="20"
               VerticalContentAlignment="Center"
               HorizontalContentAlignment="Center"
               FontSize="20" FontWeight="Bold" Foreground="White"/>
    </Grid>-->
</pu:WindowX>