|
|
@@ -62,7 +62,7 @@
|
|
|
|
|
|
<Grid Grid.Column="0" Margin="15"
|
|
|
Background="#37474f">
|
|
|
-
|
|
|
+
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="*"/>
|
|
|
<RowDefinition Height="*"/>
|
|
|
@@ -96,7 +96,7 @@
|
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
|
|
|
<Setter Property="TextBlock.FontStretch" Value="UltraExpanded"/>
|
|
|
<Setter Property="TextBlock.VerticalAlignment" Value="Center"/>
|
|
|
- <Setter Property="BorderBrush" Value="#FF00FFD3"/>
|
|
|
+ <Setter Property="BorderBrush" Value="Black"/>
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
<Setter Property="FontSize" Value="15"/>
|
|
|
<Setter Property="Width" Value="161"/>
|
|
|
@@ -122,6 +122,11 @@
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
+ <Border Margin="0,5,163,5" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.RowSpan="4" Grid.Column="2"/>
|
|
|
+ <Border Margin="161,5,2,3" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.RowSpan="2" Grid.Column="2" Grid.Row="2"/>
|
|
|
+ <Border Margin="161,0,10,78" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="2"/>
|
|
|
+ <Border Margin="33,-2,34,82" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="2" Grid.ColumnSpan="3" Grid.RowSpan="2"/>
|
|
|
+
|
|
|
<Button Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
@@ -184,396 +189,165 @@
|
|
|
ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
<TextBlock><Run Text="{Binding DifferenceDrive, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
</Button>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
|
|
|
- <Grid Grid.Column="1" Background="#263238">
|
|
|
- <StackPanel>
|
|
|
- <Button Margin="7, 20" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding PositionAddCommand}">
|
|
|
+ <!--Steering Dir Front-->
|
|
|
+ <Button Grid.Column="3" Margin="10"
|
|
|
+ Grid.Row="2"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Height="Auto"
|
|
|
+ BorderBrush="Gray"
|
|
|
+ BorderThickness="2"
|
|
|
+ Command="{Binding SelectedDirection}"
|
|
|
+ CommandParameter="Front">
|
|
|
<StackPanel>
|
|
|
- <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
- <TextBlock Text="Add" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <!--<materialDesign:PackIcon Kind="SubdirectoryArrowLeft" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Steering" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Front" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="7, 20" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding PositionDeleteCommand}">
|
|
|
+ <!--Steering Dir Back-->
|
|
|
+ <Button Grid.Column="4" Margin="10"
|
|
|
+ Grid.Row="2"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Height="Auto"
|
|
|
+ BorderBrush="Gray"
|
|
|
+ BorderThickness="2"
|
|
|
+ Command="{Binding SelectedDirection}"
|
|
|
+ CommandParameter="Back">
|
|
|
<StackPanel>
|
|
|
- <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
- <TextBlock Text="Delete" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <!--<materialDesign:PackIcon Kind="SubdirectoryArrowLeft" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Steering" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Back" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="7, 20" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding PositionSaveCommand}">
|
|
|
+ <Button Grid.Column="3" Margin="3"
|
|
|
+ Grid.Row="3"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Height="Auto"
|
|
|
+ BorderBrush="Gray"
|
|
|
+ BorderThickness="2"
|
|
|
+ Command="{Binding SteeringCWCommand}"
|
|
|
+ CommandParameter="CW">
|
|
|
<StackPanel>
|
|
|
- <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
- <TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <materialDesign:PackIcon Kind="SubdirectoryArrowLeft" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Steering CW" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <!--Move TO / Current To Target-->
|
|
|
- <Button Margin="7, 50" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding MoveToCommand}">
|
|
|
+ <Button Grid.Column="4" Margin="3"
|
|
|
+ Grid.Row="3"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Height="Auto"
|
|
|
+ BorderBrush="Gray"
|
|
|
+ BorderThickness="2"
|
|
|
+ Command="{Binding SteeringCCWCommand}"
|
|
|
+ CommandParameter="CCW">
|
|
|
<StackPanel>
|
|
|
- <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
- <TextBlock Text="Move To" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <materialDesign:PackIcon Kind="SubdirectoryArrowRight" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Steering CCW" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="7,0" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding CurrentToTargetCommand}">
|
|
|
+ <!--Jog Button-->
|
|
|
+ <RepeatButton
|
|
|
+ Margin="5"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Width="120"
|
|
|
+ Height="auto"
|
|
|
+ Command="{Binding JogCommand}" CommandParameter="-">
|
|
|
<StackPanel>
|
|
|
- <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
- <TextBlock Text="Current To" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="Target" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <materialDesign:PackIcon Kind="ArrowLeftBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
|
|
|
+ <TextBlock><Run Text="Jog(-)"/></TextBlock>
|
|
|
</StackPanel>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
+ </RepeatButton>
|
|
|
|
|
|
- <Grid Grid.Column="2" Background="#263238">
|
|
|
- <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
- <StackPanel>
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOnCommand}">
|
|
|
+ <Button
|
|
|
+ Margin="5"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="3"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Height="auto"
|
|
|
+ Command="{Binding JogVelPopupCommand}" CommandParameter="-">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
- <TextBlock Text="Servo On" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <TextBlock HorizontalAlignment="Center"><Run Text="Jog Velocity"/></TextBlock>
|
|
|
+ <TextBlock HorizontalAlignment="Center"><Run Text="{Binding JogVelocity, StringFormat={}{0:0.000}, FallbackValue=0.000}"/></TextBlock>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOffCommand}">
|
|
|
+ <RepeatButton
|
|
|
+ Margin="5"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="4"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ Width="120"
|
|
|
+ Height="auto"
|
|
|
+ Command="{Binding JogCommand}" CommandParameter="+">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="PowerPlugOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
- <TextBlock Text="Servo Off" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <materialDesign:PackIcon Kind="ArrowRightBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
|
|
|
+ <TextBlock><Run Text="Jog(+)"/></TextBlock>
|
|
|
</StackPanel>
|
|
|
- </Button>
|
|
|
+ </RepeatButton>
|
|
|
+ </Grid>
|
|
|
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding FaultResetCommand}">
|
|
|
+ <!--Steering Control-->
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!--Sub Drive Menu-->
|
|
|
+ <Grid Grid.Column="1" Background="#263238">
|
|
|
+ <StackPanel>
|
|
|
+ <Button Margin="7, 20" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding PositionAddCommand}">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="CircleArrows" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
- <TextBlock Text="Fault Reset" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Add" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding OriginCommand}">
|
|
|
+ <Button Margin="7, 20" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding PositionDeleteCommand}">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="Origin" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
- <TextBlock Text="Origin" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
+ <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Delete" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
|
|
|
+ <Button Margin="7, 20" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding PositionSaveCommand}">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
- <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
+ <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <!--<Grid>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="130"/>
|
|
|
- <ColumnDefinition Width="130"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
-
|
|
|
- <Grid Grid.Column="0">
|
|
|
- <Grid Margin="15,15" Background="#37474f">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="110"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
-
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
-
|
|
|
- <Border BorderBrush="#FF00FFD3" BorderThickness="2" Grid.RowSpan="4" Grid.Column="3" Margin="95,3,0,0"/>
|
|
|
-
|
|
|
-
|
|
|
- <Button Background="{x:Null}" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Axis"/></TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Select"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Target"/></TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Pos"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Grid.Column="0" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Current"/></TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Pos"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Grid.Column="0" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Difference"/></TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Center"><Run Text="Pos"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
- </Button>
|
|
|
-
|
|
|
-
|
|
|
- <Button Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners"
|
|
|
- Command="{Binding SelectAxisCommand}"
|
|
|
- CommandParameter="Left">
|
|
|
- <TextBlock><Run Text="#Drive1"/></TextBlock>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Background="{x:Null}" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <Button.InputBindings>
|
|
|
- <MouseBinding Gesture="LeftClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Left"/>
|
|
|
- </Button.InputBindings>
|
|
|
- <TextBlock><Run Text="{Binding TargetPosDriveLeft, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Background="{x:Null}" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <TextBlock><Run Text="{Binding CurrentDriveLeft, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Background="{x:Null}" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <TextBlock><Run Text="{Binding DifferenceDriveLeft, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
- </Button>
|
|
|
-
|
|
|
-
|
|
|
- <Button Grid.Column="2" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners"
|
|
|
- Command="{Binding SelectAxisCommand}"
|
|
|
- CommandParameter="Right">
|
|
|
- <TextBlock><Run Text="#Drive2"/></TextBlock>
|
|
|
- </Button>
|
|
|
|
|
|
- <Button Background="{x:Null}" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <Button.InputBindings>
|
|
|
- <MouseBinding Gesture="LeftClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Right"/>
|
|
|
- </Button.InputBindings>
|
|
|
- <TextBlock><Run Text="{Binding TargetPosDriveRight, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Background="{x:Null}" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <TextBlock><Run Text="{Binding CurrentDriveRight, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button Background="{x:Null}" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners">
|
|
|
- <TextBlock><Run Text="{Binding DifferenceDriveRight, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
|
|
|
- </Button>
|
|
|
- <Border BorderBrush="#FF00FFD3" BorderThickness="2" Margin="7,98,101,-33" Grid.ColumnSpan="4" RenderTransformOrigin="0.5,0.5" Grid.Row="3">
|
|
|
- <Border.RenderTransform>
|
|
|
- <TransformGroup>
|
|
|
- <ScaleTransform ScaleX="-1"/>
|
|
|
- <SkewTransform/>
|
|
|
- <RotateTransform/>
|
|
|
- <TranslateTransform/>
|
|
|
- </TransformGroup>
|
|
|
- </Border.RenderTransform>
|
|
|
- </Border>
|
|
|
-
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <Grid Grid.Row="1">
|
|
|
- <StackPanel Margin="50,0,0,90" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
- <Button
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners"
|
|
|
- Margin="15"
|
|
|
- Height="auto"
|
|
|
- HorizontalAlignment="Center"
|
|
|
- VerticalAlignment="Center"
|
|
|
- >
|
|
|
- <StackPanel>
|
|
|
- <TextBlock><Run Text="Limit(-)"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <Button
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- ToolTip="MaterialDesignRaisedButton with Round Corners"
|
|
|
- Margin="15"
|
|
|
- Height="auto"
|
|
|
- HorizontalAlignment="Center"
|
|
|
- VerticalAlignment="Center">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock><Run Text="Limit(+)"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
- <StackPanel Margin="30,0,0,50" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Left">
|
|
|
- <Button
|
|
|
- Margin="5"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="1"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- Height="auto">
|
|
|
- <StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="ArrowLeftBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
|
|
|
- <TextBlock><Run Text="Jog(-)"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
-
|
|
|
- <materialDesign:Badged
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="2"
|
|
|
- Badge="Jog Velocity"
|
|
|
- BadgeColorZoneMode="Dark"
|
|
|
- BadgePlacementMode="Top"
|
|
|
- BadgeForeground="Aqua"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Center">
|
|
|
- <Button Margin="15" VerticalAlignment="Center" HorizontalAlignment="Center" Height="60" Width="Auto" >
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Text="0.000"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </materialDesign:Badged>
|
|
|
-
|
|
|
- <Button
|
|
|
- Margin="5"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="3"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- Height="auto">
|
|
|
- <StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="ArrowRightBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
|
|
|
- <TextBlock><Run Text="Jog(+)"/></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <StackPanel>
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="1" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding SelectPosCommand}" CommandParameter="P1">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="P1" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="2" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding SelectPosCommand}" CommandParameter="P2">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="P2" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="3" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding SelectPosCommand}" CommandParameter="P3">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="P3" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="3" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding SelectPosCommand}" CommandParameter="P4">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="P4" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Margin="5" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="3" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding SelectPosCommand}" CommandParameter="P5">
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="P5" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <Grid Grid.Column="1" Background="#37474f">
|
|
|
- <StackPanel>
|
|
|
- <Button Margin="7,20" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Style="{DynamicResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ShadowAssist.ShadowDepth="Depth5"
|
|
|
+ <!--Move TO / Current To Target-->
|
|
|
+ <Button Margin="7, 50" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
Command="{Binding MoveToCommand}">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
<TextBlock Text="Move To" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
-
|
|
|
- <Button Margin="7,20" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2"
|
|
|
- Style="{DynamicResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ShadowAssist.ShadowDepth="Depth5"
|
|
|
+ <Button Margin="7,0" HorizontalAlignment="Stretch" Height="60" BorderBrush="Gray" BorderThickness="2"
|
|
|
Command="{Binding CurrentToTargetCommand}">
|
|
|
<StackPanel>
|
|
|
- <materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
- <TextBlock Text="Current" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
- <TextBlock Text="To Target" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <!--<materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Current To" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Target" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
|
|
|
- <Grid Grid.Column="2" HorizontalAlignment="Stretch" Background="#263238">
|
|
|
+ <!--Right Drive Menu-->
|
|
|
+ <Grid Grid.Column="2" Background="#263238">
|
|
|
<Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
<StackPanel>
|
|
|
<Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOnCommand}">
|
|
|
@@ -612,5 +386,5 @@
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
- </Grid>-->
|
|
|
+ </Grid>
|
|
|
</UserControl>
|