SelectDialog.xaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.SelectDialog"
  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. <ComboBox Grid.Row="1"
  26. x:Name="SelectBox"
  27. FontSize="14"
  28. Margin="0,0,0,16"
  29. MinWidth="300"
  30. HorizontalAlignment="Stretch"/>
  31. <!-- 按钮 -->
  32. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
  33. <Button Content="取消" Padding="20,6" Margin="0,0,8,0" Click="BtnCancel_Click"/>
  34. <Button Content="确定" Style="{StaticResource ButtonPrimary}" Padding="20,6" Click="BtnOK_Click"/>
  35. </StackPanel>
  36. </Grid>
  37. </hc:Window>