| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <UserControl x:Class="TeamAAS_VP.Controls.FeederOutput"
- 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:mah="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:sys="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="600"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <Viewbox Stretch="None">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Margin="0,10"
- Orientation="Horizontal">
- <ComboBox x:Name="SequenceComboBox"
- MinWidth="60"
- Margin="5,5"
- HorizontalContentAlignment="Center"
- material:HintAssist.Hint="{lex:Loc 输出设定}"
- material:HintAssist.IsFloating="True"
- ItemsSource="{Binding SequenceCollection}"
- SelectedIndex="{Binding SelectedSequence}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="SelectionChanged">
- <behavior:InvokeCommandAction Command="{Binding SelectSequenceCommand}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </ComboBox>
- </StackPanel>
- <StackPanel Grid.Row="1"
- HorizontalAlignment="Center">
- <UniformGrid Columns="2">
- <TextBlock VerticalAlignment="Center"
- Text="{lex:Loc 数字量输出,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}1: '}" />
- <mah:ToggleSwitch Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsOn="{Binding CurrentUpperFeederParamDto.HopperDigitalOutput1}" />
- <TextBlock VerticalAlignment="Bottom"
- Text="{lex:Loc 模拟量输出,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}1: '}" />
- <local:myNumericUpDowm Margin="10,0,0,0"
- Minimum="0"
- Maximum="10"
- StringFormat="{}{0:N0} %"
- Value="{Binding CurrentUpperFeederParamDto.HopperAnalogOutput1, ValidatesOnDataErrors=True,Mode=TwoWay}" />
- <TextBlock VerticalAlignment="Center"
- Text="{lex:Loc 数字量输出,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}2: '}" />
- <mah:ToggleSwitch Margin="10,0,0,0"
- IsOn="{Binding CurrentUpperFeederParamDto.HopperDigitalOutput2}" />
- <TextBlock VerticalAlignment="Bottom"
- Text="{lex:Loc 模拟量输出,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}2: '}" />
- <local:myNumericUpDowm Margin="10,0,0,0"
- Minimum="0"
- Maximum="10"
- StringFormat="{}{0:N0} %"
- Value="{Binding CurrentUpperFeederParamDto.HopperAnalogOutput2, ValidatesOnDataErrors=True,Mode=TwoWay}" />
- <TextBlock VerticalAlignment="Bottom"
- Text="{lex:Loc 振动持续时间,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <local:myNumericUpDowm Margin="10,0,0,0"
- Width="150"
- Height="20"
- Minimum="0"
- Interval="100"
- Maximum="60000"
- StringFormat="{}{0:N0} ms"
- Value="{Binding CurrentUpperFeederParamDto.HopperDuration, ValidatesOnDataErrors=True,Mode=TwoWay}" />
- </UniformGrid>
- <StackPanel Margin="0,10"
- FlowDirection="RightToLeft"
- Orientation="Horizontal">
- <Button Margin="4,10"
- HorizontalAlignment="Center"
- material:ButtonAssist.CornerRadius="5"
- Command="{Binding StopActionCommand}"
- Content="{lex:Loc 停止}" />
- <Button Margin="4,10"
- HorizontalAlignment="Center"
- material:ButtonAssist.CornerRadius="5"
- Command="{Binding ExecuteActionCommand}"
- Content="{lex:Loc 执行}"
- Cursor="Hand" />
- <Button Margin="4,10"
- HorizontalAlignment="Center"
- material:ButtonAssist.CornerRadius="5"
- Command="{Binding WriteParamCommand}"
- Content="{lex:Loc 下载参数}"
- Cursor="Hand" />
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Row="2">
- <TextBlock Margin="5"
- Text="{lex:Loc 输入设定}" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- HorizontalAlignment="Center">
- <UniformGrid Columns="2">
- <TextBlock VerticalAlignment="Bottom"
- Text="{lex:Loc 输入1触发序列ID,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <ComboBox Margin="10,0,0,0"
- material:HintAssist.Hint="{lex:Loc 输入1触发序列ID}"
- material:HintAssist.IsFloating="True"
- ItemsSource="{Binding SequenceItems}"
- SelectedIndex="{Binding InputTriggerId1, ValidatesOnDataErrors=True}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="SelectionChanged">
- <behavior:InvokeCommandAction Command="{Binding SelectInputSequenceCommand1}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </ComboBox>
- <TextBlock VerticalAlignment="Bottom"
- Text="{lex:Loc 输入2触发序列ID,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <ComboBox Margin="10,0,0,0"
- material:HintAssist.Hint="{lex:Loc 输入2触发序列ID}"
- material:HintAssist.IsFloating="True"
- ItemsSource="{Binding SequenceItems}"
- SelectedIndex="{Binding InputTriggerId2, ValidatesOnDataErrors=True}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="SelectionChanged">
- <behavior:InvokeCommandAction Command="{Binding SelectInputSequenceCommand2}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </ComboBox>
- </UniformGrid>
- <StackPanel Grid.Row="4"
- Margin="0,10"
- FlowDirection="RightToLeft"
- Orientation="Horizontal">
- <Button Margin="4,10"
- HorizontalAlignment="Center"
- material:ButtonAssist.CornerRadius="5"
- Command="{Binding WriteInputCommand}"
- Content="{lex:Loc 下载参数}"
- Cursor="Hand" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </Viewbox>
-
- </UserControl>
|