MotionControl.xaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <UserControl x:Class="CyberX8_Themes.UserControls.MotionControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  7. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. mc:Ignorable="d" x:Name="self"
  10. d:DesignHeight="850" d:DesignWidth="450">
  11. <UserControl.Resources>
  12. <converters:BoolToColor x:Key="boolToColor"/>
  13. <converters:BoolToRedColor x:Key="boolToRedColor"/>
  14. </UserControl.Resources>
  15. <Grid>
  16. <GroupBox Header="{Binding ModuleTitle, ElementName=self}" Background="{DynamicResource Table_BD_Title}" BorderBrush="DarkGray">
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="30"/>
  20. <RowDefinition Height="35"/>
  21. <RowDefinition Height="150"/>
  22. <RowDefinition Height="70"/>
  23. <RowDefinition Height="180"/>
  24. <RowDefinition Height="2"/>
  25. <RowDefinition Height="240"/>
  26. <RowDefinition Height="60"/>
  27. <RowDefinition/>
  28. </Grid.RowDefinitions>
  29. <WrapPanel Grid.Row="0" VerticalAlignment="Center">
  30. <Label Content="Status" FontSize="16" FontWeight="Bold"/>
  31. <TextBlock Background="Black" Foreground="Lime" VerticalAlignment="Center" Text="{Binding MotionData.Status, ElementName=self}"
  32. FontWeight="Bold" FontSize="16" Width="365"/>
  33. </WrapPanel>
  34. <Grid Grid.Row="1">
  35. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="ON" Margin="9,2,359,3" Height="30" Click="SwitchOn_Click"/>
  36. <Ellipse Margin="66,9,336,10" Width="16" Height="16" Fill="{Binding MotionData.IsSwitchOn, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>
  37. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="OFF" Margin="88,2,280,3" Height="30" Click="SwitchOff_Click"/>
  38. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="Home" Margin="325,2,43,3" Height="30" Click="Home_Click"/>
  39. <Ellipse Margin="382,9,20,10" Width="16" Height="16" Fill="{Binding MotionData.IsHomed, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>
  40. </Grid>
  41. <Grid Grid.Row="2">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="30"/>
  44. <RowDefinition Height="30"/>
  45. <RowDefinition Height="30"/>
  46. <RowDefinition Height="30"/>
  47. <RowDefinition Height="30"/>
  48. </Grid.RowDefinitions>
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition Width="220"/>
  51. <ColumnDefinition Width="130"/>
  52. <ColumnDefinition Width="80"/>
  53. <ColumnDefinition Width="*"/>
  54. </Grid.ColumnDefinitions>
  55. <Label Grid.Row="0" Grid.Column="0" Content="Motor Position" FontSize="16" FontWeight="Bold"/>
  56. <TextBlock Grid.Row="0" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.MotorPosition, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  57. <TextBlock Grid.Row="0" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  58. <Label Grid.Row="1" Grid.Column="0" Content="Target Position" FontSize="16" FontWeight="Bold"/>
  59. <TextBlock Grid.Row="1" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.TargetPosition, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  60. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  61. <Label Grid.Row="2" Grid.Column="0" Content="Position Error" FontSize="16" FontWeight="Bold"/>
  62. <TextBlock Grid.Row="2" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.PositionError, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  63. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  64. <Label Grid.Row="3" Grid.Column="0" Content="Torque" FontSize="16" FontWeight="Bold"/>
  65. <TextBlock Grid.Row="3" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.ActualTorque, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  66. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" Text="%" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  67. <Label Grid.Row="4" Grid.Column="0" Content="Velocity" FontSize="16" FontWeight="Bold"/>
  68. <TextBlock Grid.Row="4" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding ElementName=self,Path=MotionData.ActualVelocity, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  69. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  70. <TextBlock.Text>
  71. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  72. </TextBlock.Text>
  73. </TextBlock>
  74. </Grid>
  75. <Grid Grid.Row="3">
  76. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="-jog" Margin="104,2,284,38" Height="30" Click="JogDown_Click"/>
  77. <Control:NumbericUpDown HorizontalAlignment="Center" Margin="0,2,0,0" VerticalAlignment="Top" Width="120" Height="35" MaxValue="100.00" MinValue="-100.00"
  78. IncrementValue="{Binding ElementName=self,Path=IncrementValue,Mode=TwoWay}" DigitalMaxLength="2" Value="{Binding ElementName=self,Path=JogValue,Mode=TwoWay}"/>
  79. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="+jog" Margin="285,2,103,38" Height="30" Click="JogUp_Click"/>
  80. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="Stop" Margin="184,39,204,1" Height="30" Click="JogStop_Click"/>
  81. </Grid>
  82. <Grid Grid.Row="4">
  83. <Grid.RowDefinitions>
  84. <RowDefinition Height="30"/>
  85. <RowDefinition Height="30"/>
  86. <RowDefinition Height="30"/>
  87. <RowDefinition Height="30"/>
  88. <RowDefinition Height="30"/>
  89. <RowDefinition Height="30"/>
  90. </Grid.RowDefinitions>
  91. <Grid.ColumnDefinitions>
  92. <ColumnDefinition Width="180"/>
  93. <ColumnDefinition Width="85"/>
  94. <ColumnDefinition Width="85"/>
  95. <ColumnDefinition Width="80"/>
  96. <ColumnDefinition Width="*"/>
  97. </Grid.ColumnDefinitions>
  98. <Label Grid.Row="0" Grid.Column="0" Content="Speed" FontSize="16" FontWeight="Bold"/>
  99. <Control:NumbericTextBox Grid.Row="0" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  100. Height="22" Value="{Binding ElementName=self,Path=InputSpeed,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileVelocity"
  101. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  102. <TextBlock Grid.Column="2" Margin="0,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  103. Text="{Binding ElementName=self,Path=MotionData.ProfileVelocity,StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  104. <TextBlock Grid.Row="0" Grid.Column="3" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  105. <TextBlock.Text>
  106. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  107. </TextBlock.Text>
  108. </TextBlock>
  109. <Label Grid.Row="1" Grid.Column="0" Content="Acceleration" FontSize="16" FontWeight="Bold"/>
  110. <Control:NumbericTextBox Grid.Row="1" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  111. Height="22" Value="{Binding ElementName=self,Path=InputAcceleration,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileAccel"
  112. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  113. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  114. Text="{Binding ElementName=self,Path=MotionData.ProfileAccel, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  115. <TextBlock Grid.Row="1" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  116. <TextBlock.Text>
  117. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  118. </TextBlock.Text>
  119. </TextBlock>
  120. <Label Grid.Row="2" Grid.Column="0" Content="Deceleration" FontSize="16" FontWeight="Bold"/>
  121. <Control:NumbericTextBox Grid.Row="2" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  122. Height="22" Value="{Binding ElementName=self,Path=InputDeceleration,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileDecel"
  123. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  124. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  125. Text="{Binding ElementName=self,Path=MotionData.ProfileDecel, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  126. <TextBlock Grid.Row="2" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  127. <TextBlock.Text>
  128. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  129. </TextBlock.Text>
  130. </TextBlock>
  131. <Label Grid.Row="3" Grid.Column="0" Content="Home Speed Switch" FontSize="16" FontWeight="Bold"/>
  132. <Control:NumbericTextBox Grid.Row="3" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  133. Height="22" Value="{Binding ElementName=self,Path=InputHomeSpeedSwitch,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingVelocity"
  134. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  135. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  136. Text="{Binding MotionData.HomingVelocity, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  137. <TextBlock Grid.Row="3" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  138. <TextBlock.Text>
  139. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  140. </TextBlock.Text>
  141. </TextBlock>
  142. <Label Grid.Row="4" Grid.Column="0" Content="Home Speed Index" FontSize="16" FontWeight="Bold"/>
  143. <Control:NumbericTextBox Grid.Row="4" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  144. Height="22" Value="{Binding ElementName=self,Path=InputHomeSpeedIndex,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingVelocitySlow"
  145. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  146. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  147. Text="{Binding MotionData.HomingVelocitySlow, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  148. <TextBlock Grid.Row="4" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  149. <TextBlock.Text>
  150. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  151. </TextBlock.Text>
  152. </TextBlock>
  153. <Label Grid.Row="5" Grid.Column="0" Content="Home Accel/Decel" FontSize="16" FontWeight="Bold"/>
  154. <Control:NumbericTextBox Grid.Row="5" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  155. Height="22" Value="{Binding ElementName=self,Path=InputHomeAccelDecel,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingAccel"
  156. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}" />
  157. <TextBlock Grid.Row="5" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  158. Text="{Binding MotionData.HomingAccel, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  159. <TextBlock Grid.Row="5" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  160. <TextBlock.Text>
  161. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  162. </TextBlock.Text>
  163. </TextBlock>
  164. </Grid>
  165. <Grid Grid.Row="6">
  166. <Grid.RowDefinitions>
  167. <RowDefinition Height="30"/>
  168. <RowDefinition Height="30"/>
  169. <RowDefinition Height="30"/>
  170. <RowDefinition Height="30"/>
  171. <RowDefinition Height="30"/>
  172. <RowDefinition Height="30"/>
  173. <RowDefinition Height="30"/>
  174. <RowDefinition Height="30"/>
  175. </Grid.RowDefinitions>
  176. <Grid.ColumnDefinitions>
  177. <ColumnDefinition Width="220"/>
  178. <ColumnDefinition Width="130"/>
  179. <ColumnDefinition Width="80"/>
  180. <ColumnDefinition Width="*"/>
  181. </Grid.ColumnDefinitions>
  182. <Label Grid.Row="0" Grid.Column="0" Content="Home Offset" FontSize="16" FontWeight="Bold"/>
  183. <TextBlock Grid.Row="0" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.HomeOffset, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  184. <TextBlock Grid.Row="0" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  185. <Label Grid.Row="1" Grid.Column="0" Content="Position Error Limit" FontSize="16" FontWeight="Bold"/>
  186. <TextBlock Grid.Row="1" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.PositionErrorLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  187. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  188. <Label Grid.Row="2" Grid.Column="0" Content="TargetPosition Error Limit" FontSize="16" FontWeight="Bold"/>
  189. <TextBlock Grid.Row="2" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.TargetPositionErrorLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  190. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  191. <Label Grid.Row="3" Grid.Column="0" Content="Torque Limit" FontSize="16" FontWeight="Bold"/>
  192. <TextBlock Grid.Row="3" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding ElementName=self,Path=MotionData.TorqueLimit}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  193. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" Text="%" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  194. <Label Grid.Row="4" Grid.Column="0" Content="E Stop Deceleration" FontSize="16" FontWeight="Bold"/>
  195. <TextBlock Grid.Row="4" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.EStopDeceleration, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  196. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  197. <TextBlock.Text>
  198. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  199. </TextBlock.Text>
  200. </TextBlock>
  201. <Label Grid.Row="5" Grid.Column="0" Content="E Stop Torque" FontSize="16" FontWeight="Bold"/>
  202. <TextBlock Grid.Row="5" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.EStopTorque, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  203. <TextBlock Grid.Row="5" Grid.Column="2" Margin="2,0,2,0" Text="%" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  204. <Label Grid.Row="6" Grid.Column="0" Content="Rev Soft Limit" FontSize="16" FontWeight="Bold"/>
  205. <TextBlock Grid.Row="6" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.RevSoftLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  206. <TextBlock Grid.Row="6" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self, Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  207. <Label Grid.Row="7" Grid.Column="0" Content="Fwd Soft Limit" FontSize="16" FontWeight="Bold"/>
  208. <TextBlock Grid.Row="7" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.FwdSoftLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  209. <TextBlock Grid.Row="7" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self, Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  210. </Grid>
  211. <Grid Grid.Row="7">
  212. <Grid.ColumnDefinitions>
  213. <ColumnDefinition Width="299*"/>
  214. <ColumnDefinition Width="139*"/>
  215. </Grid.ColumnDefinitions>
  216. <Label Content="Rev Limit" FontSize="16" FontWeight="Bold" Margin="0,0,181,19" />
  217. <Ellipse Margin="34,24,249,20" Width="16" Height="16" Fill="{Binding MotionData.RevLimited, Converter={StaticResource boolToRedColor}, ElementName=self}" Stroke="Silver"/>
  218. <Label Content="Home Switch" FontSize="16" FontWeight="Bold" Margin="160,0,7,19" />
  219. <Ellipse Margin="194,24,89,20" Width="16" Height="16" Fill="{Binding MotionData.HomedSwitched, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>
  220. <Label Content="Fwd Limit" FontSize="16" FontWeight="Bold" Margin="26,0,15,19" Grid.Column="1" />
  221. <Ellipse Margin="60,24,63,20" Width="16" Height="16" Fill="{Binding MotionData.FwdLimited, Converter={StaticResource boolToRedColor}, ElementName=self}" Stroke="Silver" Grid.Column="1"/>
  222. </Grid>
  223. </Grid>
  224. </GroupBox>
  225. </Grid>
  226. </UserControl>