InputDialog.xaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.InputDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:hc="https://handyorg.github.io/handycontrol"
  5. Title="输入"
  6. Width="400" SizeToContent="Height"
  7. ResizeMode="NoResize"
  8. WindowStartupLocation="CenterOwner"
  9. ShowInTaskbar="False"
  10. Background="{DynamicResource RegionBrush}">
  11. <Grid Margin="24,24,24,16">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. <RowDefinition Height="Auto"/>
  16. </Grid.RowDefinitions>
  17. <!-- 提示文本 -->
  18. <TextBlock Grid.Row="0"
  19. x:Name="LabelText"
  20. Text="请输入:"
  21. FontSize="14"
  22. Margin="0,0,0,8"
  23. TextWrapping="Wrap"/>
  24. <!-- 输入框 -->
  25. <hc:TextBox Grid.Row="1"
  26. x:Name="InputBox"
  27. FontSize="14"
  28. hc:InfoElement.Placeholder="请输入..."
  29. Margin="0,0,0,16"/>
  30. <!-- 按钮 -->
  31. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
  32. <Button Content="取消" Padding="20,6" Margin="0,0,8,0" Click="BtnCancel_Click"/>
  33. <Button Content="确定" Style="{StaticResource ButtonPrimary}" Padding="20,6" Click="BtnOK_Click"/>
  34. </StackPanel>
  35. </Grid>
  36. </hc:Window>