| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <UserControl x:Class="TeamAAS_VP.Controls.AddPalletView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:TeamAAS_VP.Controls"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:system="clr-namespace:System;assembly=mscorlib"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- mc:Ignorable="d"
- d:DesignHeight="450"
- d:DesignWidth="800"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <TextBlock Text="{lex:Loc 创建托盘}"
- Margin="10,5"
- FontWeight="Bold"
- FontSize="16" />
- <materialDesign:Transitioner AutoApplyTransitionOrigins="True"
- d:SelectedIndex="0"
- SelectedIndex="{Binding SelectPageIndex}"
- Grid.Row="1">
- <!--选择托盘模式-->
- <materialDesign:TransitionerSlide OpeningEffect="{materialDesign:TransitionEffect FadeIn}">
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Center">
- <RadioButton Content="{lex:Loc 普通托盘}"
- IsChecked="{Binding IsCheckModel1}" />
- <RadioButton Content="{lex:Loc 组合托盘}"
- IsChecked="{Binding IsCheckModel2}" />
- </StackPanel>
- </materialDesign:TransitionerSlide>
- <!--选择坐标系模式-->
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <RadioButton IsChecked="{Binding Checked1}">
- <RadioButton.Content>
- <Grid>
- <Image Source="pack://application:,,,/TeamAAS-VP;component\Resources\Images\正交.png"
- Width="200"
- Height="200"
- Stretch="Fill" />
- <TextBlock Text="{lex:Loc 正交}"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom" />
- </Grid>
- </RadioButton.Content>
- </RadioButton>
- <RadioButton Grid.Column="1"
- IsChecked="{Binding Checked2}">
- <RadioButton.Content>
- <Grid>
- <Image Source="pack://application:,,,/TeamAAS-VP;component\Resources\Images\切变.png"
- Width="200"
- Height="200"
- Stretch="Fill" />
- <TextBlock Text="{lex:Loc 切变}"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom" />
- </Grid>
- </RadioButton.Content>
- </RadioButton>
- </Grid>
- <!--输入托盘名称-->
- <TextBox Grid.Row="1"
- Margin="2,6,2,0"
- materialDesign:HintAssist.Hint="{lex:Loc 请输入托盘的名称}"
- FontSize="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Style="{StaticResource MaterialDesignFloatingHintTextBox}"
- Text="{Binding PalletName}" />
- </materialDesign:Transitioner>
- <StackPanel Grid.Row="2"
- Margin="10"
- Orientation="Horizontal"
- HorizontalAlignment="Right">
- <Button Command="{Binding GoBack}"
- Visibility="{Binding BackButtonVisibility}"
- IsDefault="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 上一步}">
- </Button>
- <Button Command="{Binding GoNext}"
- Visibility="{Binding NextButtonVisibility}"
- IsDefault="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 下一步}">
- </Button>
- <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- CommandParameter="{Binding DataContext}"
- Visibility="{Binding OKButtonVisibility}"
- IsDefault="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 确定}">
- </Button>
- <Button Margin="8,0,0,0"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- Visibility="{Binding CancelButtonVisibility}"
- IsCancel="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 取消}">
- <Button.CommandParameter>
- <x:Null />
- </Button.CommandParameter>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|