XiChang/DM_Weight/Views/Dialog/WarnDialog.xaml

41 lines
1.9 KiB
Plaintext
Raw Normal View History

<UserControl x:Class="DM_Weight.Views.Dialog.WarnDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:DM_Weight.Views.Dialog"
xmlns:prism="http://prismlibrary.com/"
prism:ViewModelLocator.AutoWireViewModel="True"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Background="#FFD32F2F" Grid.ColumnSpan="3">
<TextBlock Text="警告" HorizontalAlignment="Center" FontSize="20" FontWeight="Bold" Foreground="White" Margin="16 4 16 4" VerticalAlignment="Center"/>
</Grid>
<TextBlock Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="3" VerticalAlignment="Center"
Margin="16 14 16 4" FontSize="16" FontWeight="Bold"
Style="{StaticResource MaterialDesignHeadline5TextBlock}"
Text="{Binding WarnMessage,UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" />
<Button Grid.Row="3" Grid.Column="1"
Margin="6"
Style="{StaticResource MaterialDesignOutlinedLightButton}"
Content="确认"
Command="{Binding CancleTake}" />
</Grid>
</UserControl>