vue-java-tutorials/CSharp/WPFTutorial/Dialog-ModuleA/Views/ViewC.xaml

24 lines
1.2 KiB
XML

<UserControl x:Class="Dialog_ModuleA.Views.ViewC"
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"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel>
<TextBlock Background="White" Foreground="Red" FontSize="40" FontWeight="DemiBold">弹窗</TextBlock>
<TextBlock FontSize="40" Text="{Binding Title}" />
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Margin="5 0" Padding="44 14" FontSize="19" FontWeight="DemiBold" Command="{Binding ConfirmCommand}">确认</Button>
<Button Margin="5 0" Padding="44 14" FontSize="19" FontWeight="DemiBold" Command="{Binding SaveCommand}">保存</Button>
</StackPanel>
</Grid>
</UserControl>