| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687 |
- <UserControl x:Class="TeamAAS_VP.Views.Product.AfagFeederParams"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
- xmlns:ucontrol="clr-namespace:TeamAAS_VP.Controls"
- xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Product"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DataContext="{d:DesignInstance Type=vm:AfagFeederParamsViewModel}"
- d:Height="700"
- d:Width="1024"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <Button Grid.Row="0"
- Content="{materialDesign:PackIcon Kind=ArrowLeftCircle}"
- Width="50"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- ToolTip="{lex:Loc 返回}"
- Style="{StaticResource MaterialDesignIconButton}"
- Command="{Binding BackCommand}" />
- <StackPanel Grid.Row="0"
- Orientation="Horizontal"
- Margin="50,0"
- VerticalAlignment="Center">
- <materialDesign:PackIcon Kind="CubeOutline"
- Width="30"
- Height="30" />
- <TextBlock Text="{Binding SelectProduct.Name}"
- VerticalAlignment="Center" />
- <TextBlock Text="{lex:Loc Feeder振动集,Converter={StaticResource StringFormatConverter},ConverterParameter=' - {0}'}"
- VerticalAlignment="Center" />
- </StackPanel>
- <Border BorderThickness="1,1,1,1"
- VerticalAlignment="Bottom"
- Height="1">
- <Border.BorderBrush>
- <VisualBrush>
- <VisualBrush.Visual>
- <Rectangle StrokeDashArray="4 4"
- Stroke="LightGray"
- StrokeThickness="1"
- Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}" />
- </VisualBrush.Visual>
- </VisualBrush>
- </Border.BorderBrush>
- </Border>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Expander Grid.Column="0"
- ExpandDirection="Right"
- Background="Transparent">
- <Expander.Header>
- <TextBlock RenderTransformOrigin=".5,.5"
- Text="Navigation Description">
- <TextBlock.LayoutTransform>
- <RotateTransform Angle="90" />
- </TextBlock.LayoutTransform>
- </TextBlock>
- </Expander.Header>
- <ScrollViewer>
- <StackPanel Margin="8,24,16,24"
- Orientation="Vertical">
- <Image Source="pack://application:,,,/TeamAAS-VP;component/Resources/Images/6Feeder任务.png"
- Stretch="Uniform"
- Width="350"
- HorizontalAlignment="Center"
- VerticalAlignment="Top" />
- <TextBlock Text="{lex:Loc Feeder任务}" />
- <TextBlock Foreground="Gray"
- TextWrapping="Wrap"
- Text="{lex:Loc Feeder任务描述}" />
- </StackPanel>
- </ScrollViewer>
- </Expander>
- <Grid Grid.Column="1"
- IsEnabled="{Binding IsAllowEdit}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <ucontrol:AflexControl x:Name="uvc"
- Grid.Column="0" />
- <ScrollViewer Grid.Column="2">
- <StackPanel Grid.Column="2"
- Background="White"
- Orientation="Vertical">
- <!--振动盘-->
- <Border CornerRadius="10"
- BorderThickness="1">
- <Border.BorderBrush>
- <VisualBrush>
- <VisualBrush.Visual>
- <Rectangle StrokeDashArray="4 4"
- Stroke="Gray"
- StrokeThickness="1"
- Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}" />
- </VisualBrush.Visual>
- </VisualBrush>
- </Border.BorderBrush>
- <!--振动盘-->
- <Expander HorizontalAlignment="Stretch"
- Background="Transparent"
- Margin="2"
- materialDesign:ExpanderAssist.ExpanderButtonPosition="Start"
- IsExpanded="True">
- <Expander.Header>
- <TextBlock FontWeight="Bold"
- Text="{lex:Loc Feeder动作流程配置}" />
- </Expander.Header>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{lex:Loc 配置编号,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center" />
- <ComboBox MinWidth="100"
- materialDesign:HintAssist.Hint="{lex:Loc 配置编号}"
- materialDesign:HintAssist.HelperText="{lex:Loc 配置编号}"
- Margin="5,0"
- SelectedIndex="{Binding FunctionIndex,Mode=TwoWay}">
- <ComboBoxItem>
- <TextBlock Text="Deley"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="1|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="2|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="3|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="4|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="5|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="6|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="7|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="8|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="9|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="10|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="11|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="12|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="13|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- </ComboBox>
- <Button Content="{lex:Loc 添加}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding AddFunctionCommand}" />
- <Button Content="{lex:Loc 移除}"
- Margin="5,0"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding RemoveFunctionCommand}"
- CommandParameter="{Binding ElementName=lstAction,Path=SelectedIndex}" />
- <Button Command="{Binding RunCommandWorks}"
- CommandParameter="0"
- Margin="5,0"
- Style="{StaticResource MaterialDesignIconButton}"
- ToolTip="Run">
- <materialDesign:PackIcon Kind="Play" />
- </Button>
- </StackPanel>
- <ListView x:Name="lstAction"
- ItemsSource="{Binding SelectProcedure.FeederWorks.FeederWorkList}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Setp"
- DisplayMemberBinding="{Binding Step}" />
- <GridViewColumn Header="{lex:Loc 配置}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <ComboBox Width="100"
- HorizontalContentAlignment="Center"
- SelectedIndex="{Binding ConfigIndex,Mode=TwoWay}"
- >
- <ComboBoxItem>
- <TextBlock Text="Deley"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="1|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="2|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="3|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="4|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="5|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="6|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="7|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="8|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="9|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="10|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="11|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="12|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="13|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- </ComboBox>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 振动强度}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Maximum="100"
- Minimum="0"
- Interval="0.1"
- materialDesign:HintAssist.Hint="{lex:Loc 振动强度}"
- StringFormat="{}{0:N1} %"
- Value="{Binding Intensity,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 振动方向}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Maximum="360"
- Minimum="0"
- Interval="0.1"
- materialDesign:HintAssist.Hint="{lex:Loc 振动方向}"
- StringFormat="{}{0:N1} °"
- Value="{Binding Direction,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 持续时间,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}(ms)'}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown Interval="100"
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Minimum="1"
- Maximum="100000"
- StringFormat="{}{0:N0} ms"
- Value="{Binding Duration,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </StackPanel>
- </Expander>
- </Border>
- <!--料仓-->
- <Border CornerRadius="10"
- BorderThickness="1">
- <Border.BorderBrush>
- <VisualBrush>
- <VisualBrush.Visual>
- <Rectangle StrokeDashArray="4 4"
- Stroke="Gray"
- StrokeThickness="1"
- Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}" />
- </VisualBrush.Visual>
- </VisualBrush>
- </Border.BorderBrush>
- <!--料仓-->
- <Expander HorizontalAlignment="Stretch"
- Margin="2"
- IsExpanded="True"
- Background="Transparent"
- materialDesign:ExpanderAssist.ExpanderButtonPosition="Start">
- <Expander.Header>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Column="0"
- FontWeight="Bold"
- VerticalAlignment="Center"
- Text="{lex:Loc 料仓出料动作流程配置}" />
- <StackPanel Grid.Column="1"
- Orientation="Horizontal"
- HorizontalAlignment="Right">
- <Button Command="{Binding RunCommandWorks}"
- CommandParameter="1"
- Style="{StaticResource MaterialDesignIconButton}"
- ToolTip="Run">
- <materialDesign:PackIcon Kind="Play" />
- </Button>
- <Button Content="{lex:Loc 出料时机设定}"
- HorizontalAlignment="Right"
- Background="Green"
- Command="{Binding SettingStockCommand}"
- Margin="2,0" />
- </StackPanel>
- </Grid>
- </Expander.Header>
- <StackPanel Orientation="Vertical">
- <!--料仓-->
- <GroupBox Header="{lex:Loc 料仓任务}">
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{lex:Loc 寄存器,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center" />
- <ComboBox MinWidth="100"
- materialDesign:HintAssist.Hint="{lex:Loc 寄存器}"
- materialDesign:HintAssist.HelperText="{lex:Loc 寄存器}"
- Margin="5,0"
- SelectedIndex="{Binding RegisterType,Mode=TwoWay}">
- <ComboBoxItem>
- <TextBlock Text="Deley"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="HoldingRegister"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- </ComboBox>
- <Button Content="{lex:Loc 添加}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding AddStockFunctionCommand}" />
- <Button Content="{lex:Loc 移除}"
- Margin="5,0"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding RemoveStockFunctionCommand}"
- CommandParameter="{Binding ElementName=lstStock,Path=SelectedIndex}" />
- </StackPanel>
- <ListView x:Name="lstStock"
- ItemsSource="{Binding SelectProcedure.FeederStockWorks.FeederStockWorkList}">
- <ListView.View>
- <GridView>
- <GridViewColumn DisplayMemberBinding="{Binding Step}"
- Header="Setp" />
- <GridViewColumn Header="{lex:Loc 寄存器}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <ComboBox MinWidth="100"
- materialDesign:HintAssist.Hint="{lex:Loc 功能码}"
- materialDesign:HintAssist.HelperText="{lex:Loc 功能码}"
- Margin="5,0"
- HorizontalContentAlignment="Center"
- SelectedIndex="{Binding RegisterIndex,Mode=TwoWay}">
- <ComboBoxItem>
- <TextBlock Text="Deley"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="HoldingRegister"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- </ComboBox>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 地址}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown Interval="1"
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Minimum="1"
- Maximum="100000"
- Value="{Binding Address,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 持续时间,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}(ms)'}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown Interval="100"
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Minimum="1"
- Maximum="100000"
- StringFormat="{}{0:N0} ms"
- Value="{Binding Duration,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </StackPanel>
- </GroupBox>
- <GroupBox Header="{lex:Loc Feeder任务}">
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{lex:Loc 动作,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center" />
- <ComboBox MinWidth="100"
- materialDesign:HintAssist.Hint="{lex:Loc 配置编号}"
- materialDesign:HintAssist.HelperText="{lex:Loc 配置编号}"
- Margin="5,0"
- SelectedIndex="{Binding FunctionIndex1,Mode=TwoWay}">
- <ComboBoxItem>
- <TextBlock Text="Deley"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="1|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="2|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="3|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="4|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="5|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="6|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="7|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="8|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="9|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="10|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="11|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="12|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="13|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- </ComboBox>
- <Button Content="{lex:Loc 添加}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding AddStockFeederFunctionCommand}" />
- <Button Content="{lex:Loc 移除}"
- Margin="5,0"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding RemoveStockFeederFunctionCommand}"
- CommandParameter="{Binding ElementName=lstStockFeeder,Path=SelectedIndex}" />
- </StackPanel>
- <ListView x:Name="lstStockFeeder"
- ItemsSource="{Binding SelectProcedure.FeederStockWorks.FeederWorkList}">
- <ListView.View>
- <GridView>
- <GridViewColumn DisplayMemberBinding="{Binding Step}"
- Header="Setp" />
- <GridViewColumn Header="{lex:Loc 配置}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <ComboBox Width="100"
- HorizontalContentAlignment="Center"
- SelectedIndex="{Binding ConfigIndex,Mode=TwoWay}">
- <ComboBoxItem>
- <TextBlock Text="Deley"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="1|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="2|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="3|Flip"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="4|Move"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="5|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="6|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="7|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="8|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="9|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="10|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="11|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="12|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="13|"
- VerticalAlignment="Center" />
- </ComboBoxItem>
- </ComboBox>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 振动强度}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Maximum="100"
- Minimum="0"
- Interval="0.1"
- materialDesign:HintAssist.Hint="振动强度"
- StringFormat="{}{0:N1} %"
- Value="{Binding Intensity,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 振动方向}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Maximum="360"
- Minimum="0"
- Interval="0.1"
- materialDesign:HintAssist.Hint="振动方向"
- StringFormat="{}{0:N1} °"
- Value="{Binding Direction,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="{lex:Loc 持续时间,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}(ms)'}">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <mah:NumericUpDown Interval="100"
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- Minimum="1"
- Maximum="100000"
- StringFormat="{}{0:N0} ms"
- Value="{Binding Duration,Mode=TwoWay}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </StackPanel>
- </GroupBox>
- </StackPanel>
- </Expander>
- </Border>
- </StackPanel>
- </ScrollViewer>
- </Grid>
- </Grid>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Margin="20">
- <Button Content="{lex:Loc 下一步}"
- IsEnabled="{Binding IsAllowEdit}"
- MinWidth="100"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- materialDesign:ButtonAssist.CornerRadius="10"
- Style="{StaticResource MaterialDesignRaisedButton}"
- Command="{Binding NextCommand}" />
- </StackPanel>
- </Grid>
- </UserControl>
|