| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <UserControl x:Class="TeamAAS_VP.Controls.FeederSystemParam"
- 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:materialDesign="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="250"
- d:DesignWidth="400"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <Viewbox Stretch="None">
- <Grid Margin="10">
- <StackPanel Margin="0,20">
- <DockPanel Margin="0,5"
- HorizontalAlignment="Center"
- LastChildFill="False">
- <TextBlock Width="125"
- Margin="5,0"
- VerticalAlignment="Bottom"
- Text="{lex:Loc 背光超时时间,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <local:myNumericUpDowm x:Name="lighttimeout"
- MinWidth="100"
- Margin="5,0"
- Maximum="65535"
- Minimum="1"
- StringFormat="{}{0:N0} ms"
- Value="{Binding LightTimeOutValue,Mode=TwoWay}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="ValueChanged">
- <behavior:InvokeCommandAction Command="{Binding LightTimeOutValueChangedCommand}"
- CommandParameter="{Binding ElementName=lighttimeout, Path=Value}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </local:myNumericUpDowm>
- </DockPanel>
- <DockPanel Margin="0,5"
- HorizontalAlignment="Center"
- LastChildFill="False">
- <TextBlock Width="125"
- Margin="5,0"
- VerticalAlignment="Bottom"
- Text="{lex:Loc 光源亮度设定,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <local:myNumericUpDowm x:Name="lightValue"
- MinWidth="100"
- Margin="5,0"
- Maximum="100"
- Minimum="1"
- Interval="1"
- StringFormat="{}{0:N0} %"
- Value="{Binding LightValue,Mode=TwoWay}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="ValueChanged">
- <behavior:InvokeCommandAction Command="{Binding LightValueChangedCommand}"
- CommandParameter="{Binding ElementName=lightValue, Path=Value}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </local:myNumericUpDowm>
- </DockPanel>
- <DockPanel Margin="0,5"
- HorizontalAlignment="Center"
- LastChildFill="False">
- <TextBlock Width="125"
- Margin="5,0"
- VerticalAlignment="Bottom"
- Text="{lex:Loc 闪烁时间,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <local:myNumericUpDowm x:Name="LightFlashTime"
- MinWidth="100"
- Margin="5,0"
- Maximum="65535"
- Minimum="1"
- Interval="100"
- StringFormat="{}{0:N0} ms"
- Value="{Binding BackLightFlashTime,Mode=TwoWay}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="ValueChanged">
- <behavior:InvokeCommandAction Command="{Binding LightFlashTimeChangedCommand}"
- CommandParameter="{Binding ElementName=LightFlashTime, Path=Value}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </local:myNumericUpDowm>
- </DockPanel>
- <DockPanel Margin="0,5"
- HorizontalAlignment="Center"
- LastChildFill="False">
- <TextBlock Width="125"
- Margin="5,0"
- VerticalAlignment="Bottom"
- Text="{lex:Loc 平台振动超时,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <local:myNumericUpDowm x:Name="platShakeTimeout"
- MinWidth="100"
- Margin="5,0"
- Maximum="65535"
- Minimum="1"
- Interval="100"
- StringFormat="{}{0:N0} ms"
- Value="{Binding PlatShakeTimeout ,Mode=TwoWay}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="ValueChanged">
- <behavior:InvokeCommandAction Command="{Binding PlatShakeTimeoutChangedCommand}"
- CommandParameter="{Binding ElementName=platShakeTimeout, Path=Value}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </local:myNumericUpDowm>
- </DockPanel>
- <DockPanel Margin="0,5"
- HorizontalAlignment="Center"
- LastChildFill="False">
- <TextBlock Width="125"
- Margin="5,0"
- VerticalAlignment="Bottom"
- Text="{lex:Loc 料斗振动超时,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
- <local:myNumericUpDowm x:Name="UpperFeeder"
- MinWidth="100"
- Margin="5,0"
- Maximum="65535"
- Minimum="1"
- StringFormat="{}{0:N0} ms"
- Value="{Binding UpperFeederShakeTimeout,Mode=TwoWay}">
- <behavior:Interaction.Triggers>
- <behavior:EventTrigger EventName="ValueChanged">
- <behavior:InvokeCommandAction Command="{Binding UpperFeederShakeTimeoutChangedCommand}"
- CommandParameter="{Binding ElementName=UpperFeeder, Path=Value}" />
- </behavior:EventTrigger>
- </behavior:Interaction.Triggers>
- </local:myNumericUpDowm>
- </DockPanel>
- <Button Margin="10,10"
- MaxWidth="200"
- VerticalAlignment="Bottom"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding WriteCommand}"
- Content="{lex:Loc 保存}" />
- </StackPanel>
- </Grid>
- </Viewbox>
-
- </UserControl>
|