| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <UserControl
- x:Class="SHJX.Service.Shell.Views.Manual.MotorManualWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:CustomUI="clr-namespace:CustomUI;assembly=SHJX.Service.Library"
- xmlns:ManualControl="clr-namespace:SHJX.Service.Library.Views.ManualControl;assembly=SHJX.Service.Library"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:SHJX.Service.Shell.Views.Manual"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- d:DesignHeight="800"
- d:DesignWidth="900"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="2*" />
- </Grid.RowDefinitions>
- <GroupBox
- Grid.Row="0"
- Width="800"
- Height="100"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- Header="返回原点">
- <StackPanel Orientation="Horizontal">
- <ManualControl:ManualButton ButtonContent="X轴" MotorManualCommand="{Binding MotorGoBackCommand}" />
- <ManualControl:ManualButton ButtonContent="Y轴" MotorManualCommand="{Binding MotorGoBackCommand}" />
- <ManualControl:ManualButton ButtonContent="Z轴" MotorManualCommand="{Binding MotorGoBackCommand}" />
- <!--<ManualControl:ManualButton ButtonContent="滴定" MotorManualCommand="{Binding MotorGoBackCommand}" />-->
- </StackPanel>
- </GroupBox>
- <GroupBox
- Grid.Row="1"
- Width="800"
- Height="100"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="电机停止">
- <StackPanel Orientation="Horizontal">
- <ManualControl:ManualButton ButtonContent="X轴" MotorManualCommand="{Binding MotorStopCommand}" />
- <ManualControl:ManualButton ButtonContent="Y轴" MotorManualCommand="{Binding MotorStopCommand}" />
- <ManualControl:ManualButton ButtonContent="Z轴" MotorManualCommand="{Binding MotorStopCommand}" />
- </StackPanel>
- </GroupBox>
- <GroupBox
- Grid.Row="2"
- Width="800"
- Height="220"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="电机控制">
- <UniformGrid Columns="5" Rows="1">
- <ManualControl:ManualSettingControl
- HeaderValue="X轴"
- LeftButtonCommand="{Binding ForwardCommand}"
- LeftButtonContent="正转"
- RightButtonCommand="{Binding InversionCommand}"
- RightButtonContent="反转" />
- <ManualControl:ManualSettingControl
- HeaderValue="Y轴"
- LeftButtonCommand="{Binding ForwardCommand}"
- LeftButtonContent="正转"
- RightButtonCommand="{Binding InversionCommand}"
- RightButtonContent="反转" />
- <ManualControl:ManualSettingControl
- HeaderValue="Z轴"
- LeftButtonCommand="{Binding ForwardCommand}"
- LeftButtonContent="正转"
- RightButtonCommand="{Binding InversionCommand}"
- RightButtonContent="反转" />
- <!--<ManualControl:ManualSettingControl
- HeaderValue="滴定位"
- LeftButtonCommand="{Binding ForwardCommand}"
- LeftButtonContent="正转"
- RightButtonCommand="{Binding InversionCommand}"
- RightButtonContent="反转" />-->
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Grid.Row="3"
- Width="800"
- Height="110"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="单点移动">
- <UniformGrid Columns="1" Rows="1">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <ComboBox
- Name="CmbArea"
- Width="80"
- Height="30"
- Margin="5,0"
- pu:ComboBoxHelper.CornerRadius="10"
- pu:ComboBoxHelper.HoverBackground="#1EB5B5B5"
- pu:ComboBoxHelper.IsSearchTextBoxVisible="True"
- pu:ComboBoxHelper.SearchTextChanged="AreaSearchTextChanged"
- pu:ComboBoxHelper.SelectedBackground="#32B5B5B5"
- 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="70"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
- pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
- Cursor="IBeam"
- Text="{Binding Area.LocationX, Mode=TwoWay}" />
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="Y轴:" />
- <TextBox
- Width="70"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
- pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
- Text="{Binding Area.LocationY, Mode=TwoWay}" />
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="Z轴:" />
- <TextBox
- Width="60"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
- pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
- Text="{Binding Area.LocationZ, Mode=TwoWay}" />
- <TextBlock
- Margin="5,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="Z轴放:" />
- <TextBox
- Width="60"
- Height="30"
- Margin="0,0,5,0"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
- pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
- Text="{Binding Area.LocationZF, Mode=TwoWay}" />
- <CheckBox
- Height="30"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#6452A4"
- pu:CheckBoxHelper.CheckedContent="可用"
- Content="禁用"
- Cursor="Hand"
- IsChecked="{Binding Area.Enable, Mode=TwoWay}" />
- <Button
- Width="70"
- Height="30"
- Margin="20,0,0,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding SingleMoveCommand}"
- Content="移动"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}" />
- <Button
- Width="70"
- Height="30"
- Margin="5,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding UpdateAreaCommand}"
- Content="更新"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}" />
- </StackPanel>
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Grid.Row="4"
- Width="800"
- Height="220"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="其他">
- <StackPanel Orientation="Horizontal">
- <GroupBox
- Width="180"
- Height="120"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="速度设置">
- <UniformGrid Columns="1" Rows="2">
- <StackPanel Orientation="Horizontal">
- <CustomUI:CheckComboBox
- x:Name="CheckComboBox"
- Width="140"
- Height="30"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- DisplayMemberPath="DetailName"
- IsEnabled="True"
- IsShowFilterBox="False"
- IsTextSearchEnabled="False"
- ItemsSource="{Binding SpeedNames}"
- MaxShowNumber="3" />
- <CheckBox
- x:Name="SpeedAllCheck"
- Height="30"
- Margin="10,0,0,0"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="16"
- pu:CheckBoxHelper.CheckedBackground="#6452A4"
- pu:CheckBoxHelper.CornerRadius="3"
- Background="#323F3F3F"
- Click="SpeedAllCheck_Click"
- Cursor="Hand" />
- </StackPanel>
- <Button
- Width="80"
- Height="25"
- Margin="5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding SpeedSettingCommand}"
- Content="更新"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- <Button.CommandParameter>
- <Binding ElementName="CheckComboBox" Path="SelectedObjList" />
- </Button.CommandParameter>
- </Button>
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Width="120"
- Height="120"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="机械抓手">
- <UniformGrid Columns="1" Rows="2">
- <CustomUI:SegmentControl
- x:Name="cb_mani"
- Width="103"
- Height="25"
- HorizontalAlignment="Center"
- BorderBrush="#6452A4"
- Cursor="Hand"
- SelectedIndex="0">
- <CustomUI:SegmentItem Content="杯抓" FontSize="10" />
- <CustomUI:SegmentItem Content="杯松" FontSize="10" />
- <!--<i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding ModeSelectionChangedCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>-->
- </CustomUI:SegmentControl>
- <Button
- Width="60"
- Height="25"
- Margin="5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManiManualControlCommand}"
- Content="设置"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- <Button.CommandParameter>
- <Binding ElementName="cb_mani" Path="SelectedItem.Content" />
- </Button.CommandParameter>
- </Button>
- </UniformGrid>
- </GroupBox>
- </StackPanel>
- </GroupBox>
- </Grid>
- </UserControl>
|