AddPalletView.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <UserControl x:Class="TeamAAS_VP.Controls.AddPalletView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:TeamAAS_VP.Controls"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:system="clr-namespace:System;assembly=mscorlib"
  9. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  10. lex:LocalizeDictionary.DesignCulture="zh-CN"
  11. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  12. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  13. mc:Ignorable="d"
  14. d:DesignHeight="450"
  15. d:DesignWidth="800"
  16. d:Background="White"
  17. FontFamily="{DynamicResource DefaultFont}">
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto" />
  21. <RowDefinition Height="*" />
  22. <RowDefinition Height="auto" />
  23. </Grid.RowDefinitions>
  24. <TextBlock Text="{lex:Loc 创建托盘}"
  25. Margin="10,5"
  26. FontWeight="Bold"
  27. FontSize="16" />
  28. <materialDesign:Transitioner AutoApplyTransitionOrigins="True"
  29. d:SelectedIndex="0"
  30. SelectedIndex="{Binding SelectPageIndex}"
  31. Grid.Row="1">
  32. <!--选择托盘模式-->
  33. <materialDesign:TransitionerSlide OpeningEffect="{materialDesign:TransitionEffect FadeIn}">
  34. <StackPanel Orientation="Horizontal"
  35. HorizontalAlignment="Center">
  36. <RadioButton Content="{lex:Loc 普通托盘}"
  37. IsChecked="{Binding IsCheckModel1}" />
  38. <RadioButton Content="{lex:Loc 组合托盘}"
  39. IsChecked="{Binding IsCheckModel2}" />
  40. </StackPanel>
  41. </materialDesign:TransitionerSlide>
  42. <!--选择坐标系模式-->
  43. <Grid>
  44. <Grid.ColumnDefinitions>
  45. <ColumnDefinition Width="*" />
  46. <ColumnDefinition Width="*" />
  47. </Grid.ColumnDefinitions>
  48. <RadioButton IsChecked="{Binding Checked1}">
  49. <RadioButton.Content>
  50. <Grid>
  51. <Image Source="pack://application:,,,/TeamAAS-VP;component\Resources\Images\正交.png"
  52. Width="200"
  53. Height="200"
  54. Stretch="Fill" />
  55. <TextBlock Text="{lex:Loc 正交}"
  56. HorizontalAlignment="Center"
  57. VerticalAlignment="Bottom" />
  58. </Grid>
  59. </RadioButton.Content>
  60. </RadioButton>
  61. <RadioButton Grid.Column="1"
  62. IsChecked="{Binding Checked2}">
  63. <RadioButton.Content>
  64. <Grid>
  65. <Image Source="pack://application:,,,/TeamAAS-VP;component\Resources\Images\切变.png"
  66. Width="200"
  67. Height="200"
  68. Stretch="Fill" />
  69. <TextBlock Text="{lex:Loc 切变}"
  70. HorizontalAlignment="Center"
  71. VerticalAlignment="Bottom" />
  72. </Grid>
  73. </RadioButton.Content>
  74. </RadioButton>
  75. </Grid>
  76. <!--输入托盘名称-->
  77. <TextBox Grid.Row="1"
  78. Margin="2,6,2,0"
  79. materialDesign:HintAssist.Hint="{lex:Loc 请输入托盘的名称}"
  80. FontSize="16"
  81. HorizontalAlignment="Center"
  82. VerticalAlignment="Center"
  83. Style="{StaticResource MaterialDesignFloatingHintTextBox}"
  84. Text="{Binding PalletName}" />
  85. </materialDesign:Transitioner>
  86. <StackPanel Grid.Row="2"
  87. Margin="10"
  88. Orientation="Horizontal"
  89. HorizontalAlignment="Right">
  90. <Button Command="{Binding GoBack}"
  91. Visibility="{Binding BackButtonVisibility}"
  92. IsDefault="True"
  93. Style="{StaticResource MaterialDesignFlatButton}"
  94. Content="{lex:Loc 上一步}">
  95. </Button>
  96. <Button Command="{Binding GoNext}"
  97. Visibility="{Binding NextButtonVisibility}"
  98. IsDefault="True"
  99. Style="{StaticResource MaterialDesignFlatButton}"
  100. Content="{lex:Loc 下一步}">
  101. </Button>
  102. <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
  103. CommandParameter="{Binding DataContext}"
  104. Visibility="{Binding OKButtonVisibility}"
  105. IsDefault="True"
  106. Style="{StaticResource MaterialDesignFlatButton}"
  107. Content="{lex:Loc 确定}">
  108. </Button>
  109. <Button Margin="8,0,0,0"
  110. Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
  111. Visibility="{Binding CancelButtonVisibility}"
  112. IsCancel="True"
  113. Style="{StaticResource MaterialDesignFlatButton}"
  114. Content="{lex:Loc 取消}">
  115. <Button.CommandParameter>
  116. <x:Null />
  117. </Button.CommandParameter>
  118. </Button>
  119. </StackPanel>
  120. </Grid>
  121. </UserControl>