| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925 |
- <Window
- x:Class="SHJX.Service.View.View.ManualForm"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:manual="clr-namespace:SHJX.Service.Librarys.manual;assembly=SHJX.Service.Librarys"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- xmlns:ui="clr-namespace:CustomUI;assembly=SHJX.Service.CustomControl"
- Title="手动控制"
- Width="1048"
- Height="900"
- AllowsTransparency="True"
- Background="Transparent"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <Border
- Margin="5"
- Background="White"
- BorderBrush="#99CCCC"
- BorderThickness="3">
- <Border.Effect>
- <DropShadowEffect
- BlurRadius="10"
- Opacity="0.8"
- ShadowDepth="0"
- Color="#CCCCCC" />
- </Border.Effect>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.4*" />
- <RowDefinition Height="11.6*" />
- </Grid.RowDefinitions>
- <Grid
- Name="ManualTag"
- Grid.Row="0"
- Background="#99CCCC"
- MouseLeftButtonDown="ManualTag_MouseLeftButtonDown">
- <TextBlock
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- FontSize="13"
- FontWeight="Black"
- Foreground="White"
- Text="手动控制" />
- <Button
- x:Name="btn_manual_close"
- Width="25"
- Height="25"
- Margin="0,0,10,0"
- Padding="0"
- HorizontalAlignment="Right"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="Transparent"
- BorderBrush="Transparent"
- Click="btn_manual_close_Click"
- Cursor="Hand">
- <Image
- Width="25"
- Height="25"
- Source="/SHJX.Service.Resource;component/Resources/关闭.png" />
- </Button>
- </Grid>
- <ScrollViewer
- Margin="0,20,0,0"
- Padding="0,0,0,0"
- pu:ScrollViewerHelper.ScrollBarThickness="8"
- pu:ScrollViewerHelper.ThumbBrush="#99CCCC"
- BorderBrush="#99CCCC" Grid.RowSpan="2" RenderTransformOrigin="0.504,0.454">
- <Grid Width="1000" HorizontalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition Height="139" />
- <RowDefinition Height="159" />
- <RowDefinition Height="90" />
- <RowDefinition Height="180" />
- <RowDefinition Height="180" />
- <RowDefinition Height="180" />
- </Grid.RowDefinitions>
- <Grid
- Grid.Row="0"
- Grid.RowSpan="3"
- Margin="15,0,0,52" RenderTransformOrigin="0.488,0.304">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="6*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Horizontal" Grid.ColumnSpan="2" Margin="0,12,231,50">
- <GroupBox
- Grid.Row="0"
- Width="368"
- Height="82"
- Margin="10,5,10,5"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="返回原点">
- <StackPanel Orientation="Horizontal">
- <Button
- Name="MotorXGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=MotorXGB, Path=Content}"
- Content="X轴"
- Cursor="Hand" />
- <Button
- Name="MotorYGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=MotorYGB, Path=Content}"
- Content="Y轴"
- Cursor="Hand" />
- <Button
- Name="MotorZGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=MotorZGB, Path=Content}"
- Content="Z轴"
- Cursor="Hand" />
- <Button
- Name="MotorTGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=MotorTGB, Path=Content}"
- Content="H轴"
- Cursor="Hand" />
- <Button
- x:Name="ClearGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=ClearGB, Path=Content}"
- Content="消解"
- Cursor="Hand" />
- <Button
- Name="CoolingGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=CoolingGB, Path=Content}"
- Content="冷凝"
- Cursor="Hand" />
- <Button
- Name="AllGB"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorGoBackCommand}"
- CommandParameter="{Binding ElementName=AllGB, Path=Content}"
- Content="全部"
- Cursor="Hand" />
- </StackPanel>
- </GroupBox>
- <GroupBox
- Grid.Row="0"
- Width="365"
- Height="82"
- Margin="0,5,0,5"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="其他操作">
- <StackPanel Orientation="Horizontal">
- <Button
- Name="ManiGrab"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding ManiOperateCommand}"
- CommandParameter="{Binding ElementName=ManiGrab, Path=Content}"
- Content="杯抓"
- Cursor="Hand" />
- <Button
- Name="ManiLose"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding ManiOperateCommand}"
- CommandParameter="{Binding ElementName=ManiLose, Path=Content}"
- Content="杯松"
- Cursor="Hand" />
- <Button
- Name="DripNozzleArrive"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding DripNozzleOperateCommand}"
- CommandParameter="{Binding ElementName=DripNozzleArrive, Path=Content}"
- Content="滴正"
- Cursor="Hand" />
- <Button
- Name="DripNozzleGoBack"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding DripNozzleOperateCommand}"
- CommandParameter="{Binding ElementName=DripNozzleGoBack, Path=Content}"
- Content="滴返"
- Cursor="Hand" />
- <!--<Button
- Name="DripNozzleArrive2"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding DripNozzleOperateCommand}"
- CommandParameter="{Binding ElementName=DripNozzleArrive2, Path=Content}"
- Content="滴2正"
- Cursor="Hand" />
- <Button
- Name="DripNozzleGoBack2"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding DripNozzleOperateCommand}"
- CommandParameter="{Binding ElementName=DripNozzleGoBack2, Path=Content}"
- Content="滴2返"
- Cursor="Hand" />-->
- <Button
- Name="DropMonitor"
- Width="40"
- Height="40"
- Margin="5,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Click="DropMonitor_Click"
- Content="监测"
- Cursor="Hand" />
- </StackPanel>
- </GroupBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" Margin="0,70,227,31" Grid.RowSpan="2">
- <GroupBox
- Width="248"
- Height="140"
- Margin="10,5,10,5"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="电机停止">
- <UniformGrid Columns="5" Margin="-6,0,0,0">
- <Button
- Name="MotorXStop"
- Width="40"
- Height="40"
- Margin="0,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorStopCommand}"
- CommandParameter="{Binding ElementName=MotorXStop, Path=Content}"
- Content="X轴"
- Cursor="Hand" />
- <Button
- Name="MotorYStop"
- Width="40"
- Height="40"
- Margin="0,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorStopCommand}"
- CommandParameter="{Binding ElementName=MotorYStop, Path=Content}"
- Content="Y轴"
- Cursor="Hand" />
- <Button
- Name="MotorZStop"
- Width="40"
- Height="40"
- Margin="0,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorStopCommand}"
- CommandParameter="{Binding ElementName=MotorZStop, Path=Content}"
- Content="Z轴"
- Cursor="Hand" />
- <Button
- Name="MotorTStop"
- Width="40"
- Height="40"
- Margin="0,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorStopCommand}"
- CommandParameter="{Binding ElementName=MotorTStop, Path=Content}"
- Content="H轴"
- Cursor="Hand" />
- <Button
- Name="DissolveStop"
- Width="40"
- Height="40"
- Margin="0,0"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding MotorStopCommand}"
- CommandParameter="{Binding ElementName=DissolveStop, Path=Content}"
- Content="消解"
- Cursor="Hand" />
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Width="486"
- Height="140"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="其他">
- <UniformGrid Columns="3">
- <GroupBox
- Grid.Row="0"
- Height="90"
- Margin="4,5,10,5"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="手动加热">
- <Grid Margin="-5,0,1,0">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBox
- x:Name="SettingTemperature"
- Grid.Row="0"
- Height="20"
- pu:TextBoxHelper.CornerRadius="6"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC" Margin="5,3,5,2" />
- <UniformGrid
- Grid.Row="1"
- Columns="2"
- Rows="1">
- <Button
- Width="60"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ManualStartHeatCommand}"
- CommandParameter="{Binding ElementName=SettingTemperature, Path=Text}"
- Content="开始"
- Cursor="Hand" Click="Button_Click" />
- <Button
- Width="60"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ManualStopHeatCommand}"
- Content="结束"
- Cursor="Hand" />
- </UniformGrid>
- </Grid>
- </GroupBox>
- <GroupBox
- Grid.Row="0"
- Margin="1,5,2,5"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="搅拌">
- <Grid Margin="-5,-2,0,0">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <ui:SegmentControl
- Name="cb_StirName"
- Width="140"
- Height="25"
- HorizontalAlignment="Center"
- BorderBrush="#99CCCC"
- CornerRadius="5"
- Cursor="Hand"
- Foreground="#99CCCC"
- IsAllRound="False"
- SelectedIndex="0">
- <ui:SegmentItem
- Width="70"
- Height="25"
- Content="消解"
- CornerRadius="5"
- FontSize="11" />
- <ui:SegmentItem
- Width="70"
- Height="25"
- Content="滴定"
- CornerRadius="5"
- FontSize="11" />
- <!--<ui:SegmentItem
- Width="55"
- Height="25"
- Content="滴定(高)"
- CornerRadius="5"
- HorizontalAlignment="Center"
- FontSize="11" />-->
- </ui:SegmentControl>
- <UniformGrid
- Grid.Row="1"
- Columns="2"
- Rows="1">
- <Button
- Width="60"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ManualStirStartCommand}"
- CommandParameter="{Binding ElementName=cb_StirName, Path=SelectedItem}"
- Content="开始"
- Cursor="Hand" Margin="0,0,0,-2" />
- <Button
- Width="60"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ManualStirStopCommand}"
- CommandParameter="{Binding ElementName=cb_StirName, Path=SelectedItem}"
- Content="结束"
- Cursor="Hand" Margin="0,0,0,-2"/>
- </UniformGrid>
- </Grid>
- </GroupBox>
- <GroupBox
- Grid.Row="0"
- Height="90"
- Margin="6,5,8,5"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="风扇">
- <Grid Margin="-3,0,2,0">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <ui:SegmentControl
- Name="cb_FanName"
- Grid.Row="0"
- Width="130"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- BorderBrush="#99CCCC"
- CornerRadius="5"
- Cursor="Hand"
- Foreground="#99CCCC"
- IsAllRound="False"
- SelectedIndex="0">
- <ui:SegmentItem
- Width="65"
- Height="25"
- Content="样品"
- CornerRadius="5"
- FontSize="11" />
- <ui:SegmentItem
- Width="65"
- Height="25"
- Content="消解"
- CornerRadius="5"
- FontSize="11" />
- </ui:SegmentControl>
- <UniformGrid
- Grid.Row="1"
- Columns="2"
- Rows="1">
- <Button
- Width="60"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ManualFanStartCommand}"
- CommandParameter="{Binding ElementName=cb_FanName, Path=SelectedItem}"
- Content="开始"
- Cursor="Hand" Margin="0,0,0,-2"/>
- <Button
- Width="60"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ManualFanStopCommand}"
- CommandParameter="{Binding ElementName=cb_FanName, Path=SelectedItem}"
- Content="结束"
- Cursor="Hand" Margin="0,0,0,-2"/>
- </UniformGrid>
- </Grid>
- </GroupBox>
- </UniformGrid>
- </GroupBox>
- </StackPanel>
- <StackPanel
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- HorizontalAlignment="Left"
- VerticalAlignment="Top" Margin="10,10,0,0" Width="250" Height="250">
- <ui:Dashboard
- x:Name="dashboard"
- Width="208"
- Height="208"
- Margin="10,20"
- LongTickCount="5"
- Maximum="300"
- ShortTickCount="2"
- Skin="Speed"
- Value="{Binding CurrentTemperature}" />
- </StackPanel>
- </Grid>
- <GroupBox
- Grid.Row="1"
- Width="950"
- HorizontalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="单点移动" Margin="0,135,0,42" Grid.RowSpan="2">
- <UniformGrid Columns="1" Rows="1">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <ComboBox
- Name="CmbArea"
- Width="100"
- Height="30"
- Margin="5,0"
- pu:ComboBoxHelper.CornerRadius="10"
- pu:ComboBoxHelper.HoverBackground="#1E66CCCC"
- pu:ComboBoxHelper.IsSearchTextBoxVisible="True"
- pu:ComboBoxHelper.SearchTextChanged="AreaSearchTextChanged"
- pu:ComboBoxHelper.SelectedBackground="#3299CCCC"
- BorderBrush="#99CCCC"
- Cursor="Hand"
- Foreground="#99CCCC"
- ItemsSource="{Binding AreaPoint}"
- SelectedItem="{Binding AreaCurrentPoint}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding AreaSelectionChangedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="X轴:" />
- <TextBox
- Width="80"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Area.LocationX, Mode=TwoWay}" />
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="Y轴:" />
- <TextBox
- Width="80"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Cursor="IBeam"
- Foreground="#99CCCC"
- Text="{Binding Area.LocationY, Mode=TwoWay}" />
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="Z轴:" />
- <TextBox
- Width="80"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Area.LocationZ, Mode=TwoWay}" />
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="H轴:" />
- <TextBox
- Width="80"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Area.LocationT, Mode=TwoWay}" />
- <CheckBox
- Height="30"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#99CCCC"
- pu:CheckBoxHelper.CheckedContent="可用"
- Content="禁用"
- Cursor="Hand"
- Foreground="#99CCCC"
- IsChecked="{Binding Area.Status, Mode=TwoWay}" />
- <Button
- Width="80"
- Height="30"
- Margin="20,0,0,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding SingleMoveCommand}"
- Content="移动" />
- <Button
- Width="80"
- Height="30"
- Margin="5,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Command="{Binding UpdateAreaCommand}"
- Content="更新" />
- </StackPanel>
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Margin="0,65,0,0"
- Grid.Row="2"
- Width="950"
- Height="150"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="电机控制" Grid.RowSpan="2">
- <UniformGrid
- x:Name="MotorOperate"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Columns="6"
- Rows="1">
- <manual:ManualOperation OpName="X轴" />
- <manual:ManualOperation OpName="Y轴" />
- <manual:ManualOperation OpName="Z轴" />
- <manual:ManualOperation OpName="H轴" />
- <manual:ManualOperation OpName="消解" />
- <!--#region 冷凝-->
- <GroupBox
- Name="head"
- Grid.Row="1"
- Width="100"
- Height="100"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- FontSize="13"
- Foreground="#99CCCC"
- Header="冷凝">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" />
- <UniformGrid
- Grid.Row="1"
- Columns="2"
- Rows="1">
- <Button
- Name="RiseValue"
- Width="40"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding CoolingPipeMoveCommand}"
- CommandParameter="{Binding ElementName=RiseValue, Path=Content}"
- Content="上升"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- FontSize="12" />
- <Button
- Name="DownValue"
- Width="40"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding CoolingPipeMoveCommand}"
- CommandParameter="{Binding ElementName=DownValue, Path=Content}"
- Content="下降"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- FontSize="12" />
- </UniformGrid>
- </Grid>
- </GroupBox>
- <!--#endregion-->
- <!--<manual:ManualOperation OpName="冷凝"/>-->
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Margin="0,75,0,0"
- Grid.Row="3"
- Width="950"
- Height="150"
- HorizontalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="液体控制(s)" Grid.RowSpan="2">
- <UniformGrid
- Width="787"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Columns="5"
- Rows="1">
- <manual:LiquidOperate OpName="水(1)" PumpInVisibility="Hidden" />
- <manual:LiquidOperate OpName="水(13)" PumpInVisibility="Hidden" />
- <manual:LiquidOperate OpName="试亚铁灵" PumpInVisibility="Hidden" />
- <manual:LiquidOperate OpName="硫酸汞" PumpInVisibility="Hidden" />
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Margin="0,52,0,0"
- Grid.Row="4"
- Width="950"
- Height="150"
- HorizontalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="液体控制(ml)" Grid.RowSpan="2">
- <UniformGrid
- Width="950"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Columns="6"
- Rows="1">
- <manual:LiquidOperate
- InLiquidWaiting="{Binding PotassiumDichromateHighInValue}"
- OpName="重铬酸钾(高)"
- OutLiquidWaiting="{Binding PotassiumDichromateHighOutValue}" />
- <manual:LiquidOperate
- InLiquidWaiting="{Binding PotassiumDichromateLowInValue}"
- OpName="重铬酸钾(低)"
- OutLiquidWaiting="{Binding PotassiumDichromateLowOutValue}" />
- <manual:LiquidOperate OpName="硫酸亚铁铵(高)" PumpInVisibility="Hidden" />
- <manual:LiquidOperate OpName="硫酸亚铁铵(低)" PumpInVisibility="Hidden" />
- <manual:LiquidOperate OpName="硫酸银(1)" PumpInVisibility="Hidden" />
- <manual:LiquidOperate OpName="硫酸银(13)" PumpInVisibility="Hidden" />
- </UniformGrid>
- </GroupBox>
- </Grid>
- </ScrollViewer>
- </Grid>
- </Border>
- </Window>
|