alielie
2025-03-17 c401a2f2fd1a509cdeb33e850bb5c2827074af48
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
<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"
        SizeToContent="WidthAndHeight"
        Height="20"
        CanClose="False"
        x:Name="self"
        WindowStartupLocation="CenterOwner">
    <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>
        <Label x:Name="label" 
               Margin="20"
               VerticalContentAlignment="Center"
               HorizontalContentAlignment="Center"
               FontSize="20" FontWeight="Bold" Foreground="White"/>
    </Grid>
</pu:WindowX>