Dispenser/DispenserUI/Views/Windows/EmergencyWindow.axaml

36 lines
1.7 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:windows="clr-namespace:DispenserUI.Views.Windows"
SystemDecorations="None"
WindowStartupLocation="CenterScreen"
Height="1080"
Width="1920"
WindowState="FullScreen"
Background="{Binding BackGround, RelativeSource={RelativeSource Mode=Self, AncestorType=windows:EmergencyWindow}}"
x:Class="DispenserUI.Views.Windows.EmergencyWindow"
Title="EmergencyWindow">
<Border x:Name="UserFormBorder" Padding="20,50,20,30" CornerRadius="12"
Background="White"
Width="400"
Height="250">
<Grid RowDefinitions="*,60">
<TextBlock Grid.Row="0" Margin="0,0,0,0" FontSize="40" HorizontalAlignment="Center"
Text="发生紧急停机"
Foreground="Red" FontWeight="Bold"
TextWrapping="WrapWithOverflow" />
<Grid Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"
Margin="0,20,0,0">
<Button Width="300" Height="40" Cursor="Hand"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Click="Confirm"
CornerRadius="10" Background="#5F57FF">
<TextBlock
Text="清除故障"
Foreground="White" FontSize="16" HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Button>
</Grid>
</Grid>
</Border>
</Window>