AddMotionCardDialog.xaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. SelectionChanged="cbBrand_SelectionChanged">
  45. </ComboBox>
  46. <TextBlock Text="{loc:Translate '卡号'}"
  47. FontSize="13"
  48. Margin="0,0,0,4"
  49. Foreground="{DynamicResource SecondaryTextBrush}" />
  50. <TextBox x:Name="txtCardNum"
  51. Text="{loc:Translate '1'}"
  52. FontSize="13"
  53. Padding="8,6"
  54. Margin="0,0,0,16" />
  55. </StackPanel>
  56. </ScrollViewer>
  57. <StackPanel Grid.Row="2"
  58. Orientation="Horizontal"
  59. HorizontalAlignment="Left"
  60. Margin="176,0,0,0">
  61. <Button Content="{loc:Translate '取消'}"
  62. MinWidth="80"
  63. Padding="16,0"
  64. Margin="0,0,12,0"
  65. IsCancel="True"
  66. Style="{StaticResource ButtonDefault}" />
  67. <Button Content="{loc:Translate '确定'}"
  68. MinWidth="80"
  69. Padding="16,0"
  70. IsDefault="True"
  71. Click="BtnOK_Click"
  72. Style="{StaticResource ButtonPrimary}" />
  73. </StackPanel>
  74. </Grid>
  75. </hc:Window>