AddMotionCardDialog.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <hc:Window x:Class="TeamAAS.Views.AddMotionCardDialog"
  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. xmlns:loc="clr-namespace:TeamAAS.Localization"
  6. Title="{loc:Translate '添加控制卡'}"
  7. Width="400"
  8. Height="458"
  9. WindowStartupLocation="CenterOwner"
  10. ResizeMode="NoResize"
  11. Background="{DynamicResource RegionBrush}">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="100*" />
  16. <RowDefinition Height="50" />
  17. </Grid.RowDefinitions>
  18. <TextBlock Text="🎛️添加控制卡"
  19. FontSize="18"
  20. FontWeight="Bold"
  21. Foreground="{DynamicResource PrimaryTextBrush}"
  22. Margin="0,0,0,24" />
  23. <ScrollViewer Grid.Row="1">
  24. <StackPanel Orientation="Vertical">
  25. <TextBlock Text="{loc:Translate '名称'}"
  26. FontSize="13"
  27. Margin="0,0,0,4"
  28. Foreground="{DynamicResource SecondaryTextBrush}" />
  29. <TextBox x:Name="txtName"
  30. Text="{loc:Translate '控制卡1'}"
  31. FontSize="13"
  32. Padding="8,6"
  33. Margin="0,0,0,16" />
  34. <!-- Brand -->
  35. <TextBlock Text="{loc:Translate '品牌'}"
  36. FontSize="13"
  37. Margin="0,0,0,4"
  38. Foreground="{DynamicResource SecondaryTextBrush}" />
  39. <ComboBox x:Name="cbBrand"
  40. FontSize="13"
  41. Padding="8,6"
  42. Margin="0,0,0,16"
  43. SelectedIndex="1">
  44. </ComboBox>
  45. </StackPanel>
  46. </ScrollViewer>
  47. <StackPanel Grid.Row="2"
  48. Orientation="Horizontal"
  49. HorizontalAlignment="Left"
  50. Margin="176,0,0,0">
  51. <Button Content="{loc:Translate '取消'}"
  52. MinWidth="80"
  53. Padding="16,0"
  54. Margin="0,0,12,0"
  55. IsCancel="True"
  56. Style="{StaticResource ButtonDefault}" />
  57. <Button Content="{loc:Translate '确定'}"
  58. MinWidth="80"
  59. Padding="16,0"
  60. IsDefault="True"
  61. Click="BtnOK_Click"
  62. Style="{StaticResource ButtonPrimary}" />
  63. </StackPanel>
  64. </Grid>
  65. </hc:Window>