LockServoView.xaml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. <UserControl x:Class="OHV.Module.Interactivity.PopUp.LockServoView"
  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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  7. xmlns:local="clr-namespace:OHV.Module.Interactivity.PopUp"
  8. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  9. xmlns:prism="http://prismlibrary.com/"
  10. prism:ViewModelLocator.AutoWireViewModel="True"
  11. xmlns:CommonShareds ="clr-namespace:OHV.Common.Shareds;assembly=OHV.Common"
  12. mc:Ignorable="d"
  13. xmlns:c ="clr-namespace:GSG.NET.WPF.CalcBinding;assembly=GSG.NET.WPF"
  14. xmlns:media ="clr-namespace:System.Windows.Media;assembly=PresentationCore"
  15. Height="1080" Width="1920"
  16. Background="#CC282C34">
  17. <prism:Dialog.WindowStyle>
  18. <Style TargetType="Window">
  19. <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
  20. <Setter Property="Background" Value="Transparent"/>
  21. <Setter Property="AllowsTransparency" Value="True"/>
  22. <Setter Property="ResizeMode" Value="NoResize"/>
  23. <Setter Property="WindowStyle" Value="None"/>
  24. <Setter Property="BorderThickness" Value="1"/>
  25. <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
  26. <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
  27. <Setter Property="WindowState" Value="Maximized"/>
  28. <!--<Style.Triggers>
  29. <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
  30. <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
  31. </Trigger>
  32. </Style.Triggers>-->
  33. </Style>
  34. </prism:Dialog.WindowStyle>
  35. <UserControl.Resources>
  36. <Style x:Key="TouchButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignFlatMidBgButton}">
  37. <Setter Property="IsTabStop" Value="false"/>
  38. <Setter Property="Focusable" Value="false"/>
  39. <Setter Property="ClickMode" Value="Press"/>
  40. <Setter Property="Template">
  41. <Setter.Value>
  42. <ControlTemplate TargetType="{x:Type Button}">
  43. <Border x:Name="Border" CornerRadius="2" BorderThickness="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
  44. <ContentPresenter Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center" RecognizesAccessKey="True"/>
  45. </Border>
  46. <ControlTemplate.Triggers>
  47. <Trigger Property="Button.IsMouseOver" Value="True">
  48. <Setter TargetName="Border" Property="Background" Value="Green"></Setter>
  49. </Trigger>
  50. </ControlTemplate.Triggers>
  51. </ControlTemplate>
  52. </Setter.Value>
  53. </Setter>
  54. </Style>
  55. </UserControl.Resources>
  56. <Border BorderBrush="Gray" BorderThickness="2" Width="900" Height="700">
  57. <Grid Background="#263238">
  58. <Grid.ColumnDefinitions>
  59. <ColumnDefinition/>
  60. <ColumnDefinition Width="130"/>
  61. <ColumnDefinition Width="130"/>
  62. </Grid.ColumnDefinitions>
  63. <Grid.RowDefinitions>
  64. <RowDefinition Height="30"/>
  65. <RowDefinition Height="*"/>
  66. </Grid.RowDefinitions>
  67. <Grid Grid.Row="0">
  68. <TextBlock Margin="15,0,0,0" Text="Clamp View" FontSize="25" Foreground="White"/>
  69. </Grid>
  70. <Grid Grid.Column="0" Grid.Row="1" Background="#263238">
  71. <Grid Margin="15,15" Background="#37474f">
  72. <Grid.RowDefinitions>
  73. <RowDefinition/>
  74. <RowDefinition/>
  75. </Grid.RowDefinitions>
  76. <Grid Grid.Row="0">
  77. <Grid.RowDefinitions>
  78. <RowDefinition Height="*"/>
  79. <RowDefinition Height="*"/>
  80. <RowDefinition Height="*"/>
  81. <RowDefinition Height="*"/>
  82. </Grid.RowDefinitions>
  83. <Grid.ColumnDefinitions>
  84. <ColumnDefinition Width="*"/>
  85. <ColumnDefinition Width="*"/>
  86. <ColumnDefinition Width="*"/>
  87. <ColumnDefinition Width="*"/>
  88. <ColumnDefinition Width="*"/>
  89. </Grid.ColumnDefinitions>
  90. <Button Background="{x:Null}" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  91. Style="{StaticResource MaterialDesignRaisedButton}"
  92. materialDesign:ButtonAssist.CornerRadius="10"
  93. >
  94. <StackPanel>
  95. <TextBlock HorizontalAlignment="Center"><Run Text="Axis" FontSize="20"/></TextBlock>
  96. <TextBlock HorizontalAlignment="Center"><Run Text="Select" FontSize="20"/></TextBlock>
  97. </StackPanel>
  98. </Button>
  99. <Button Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  100. Style="{StaticResource MaterialDesignRaisedButton}"
  101. materialDesign:ButtonAssist.CornerRadius="10"
  102. >
  103. <StackPanel>
  104. <TextBlock HorizontalAlignment="Center"><Run Text="Target" FontSize="20"/></TextBlock>
  105. <TextBlock HorizontalAlignment="Center"><Run Text="Pos" FontSize="20"/></TextBlock>
  106. </StackPanel>
  107. </Button>
  108. <Button Grid.Column="0" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  109. Style="{StaticResource MaterialDesignRaisedButton}"
  110. materialDesign:ButtonAssist.CornerRadius="10"
  111. >
  112. <StackPanel>
  113. <TextBlock HorizontalAlignment="Center"><Run Text="Current" FontSize="18"/></TextBlock>
  114. <TextBlock HorizontalAlignment="Center"><Run Text="Pos" FontSize="20"/></TextBlock>
  115. </StackPanel>
  116. </Button>
  117. <Button Grid.Column="0" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  118. Style="{StaticResource MaterialDesignRaisedButton}"
  119. materialDesign:ButtonAssist.CornerRadius="10"
  120. >
  121. <StackPanel>
  122. <TextBlock HorizontalAlignment="Center"><Run Text="Difference" FontSize="14"/></TextBlock>
  123. <TextBlock HorizontalAlignment="Center"><Run Text="Pos" FontSize="20"/></TextBlock>
  124. </StackPanel>
  125. </Button>
  126. <!--Column2-->
  127. <Button Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  128. Style="{StaticResource MaterialDesignRaisedButton}"
  129. materialDesign:ButtonAssist.CornerRadius="10"
  130. Command="{Binding SelectAxisCommand}"
  131. CommandParameter="Axis_CarrierLock_Left"
  132. BorderBrush="{Binding LeftAxisBrush}"
  133. BorderThickness="2">
  134. <StackPanel>
  135. <TextBlock VerticalAlignment="Center"
  136. HorizontalAlignment="Center">
  137. <Run Text="Clamp" FontSize="20"/>
  138. </TextBlock>
  139. <TextBlock><Run Text="Axis Left" FontSize="20"/></TextBlock>
  140. </StackPanel>
  141. </Button>
  142. <Button Background="{x:Null}" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  143. Style="{StaticResource MaterialDesignRaisedButton}"
  144. materialDesign:ButtonAssist.CornerRadius="10">
  145. <Button.InputBindings>
  146. <MouseBinding Gesture="LeftClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Left"/>
  147. </Button.InputBindings>
  148. <TextBlock><Run Text="{Binding TargetPosLockLeft, StringFormat=0.000, FallbackValue=0.000}" FontSize="20"/></TextBlock>
  149. </Button>
  150. <Button Background="{x:Null}" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  151. Style="{StaticResource MaterialDesignRaisedButton}"
  152. materialDesign:ButtonAssist.CornerRadius="10">
  153. <TextBlock><Run Text="{Binding CurrentLockLeft, StringFormat=0.000, FallbackValue=0.000}" FontSize="20"/></TextBlock>
  154. </Button>
  155. <Button Background="{x:Null}" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  156. Style="{StaticResource MaterialDesignRaisedButton}"
  157. materialDesign:ButtonAssist.CornerRadius="10">
  158. <TextBlock><Run Text="{Binding DifferenceLockLeft, StringFormat=0.000, FallbackValue=0.000}" FontSize="20"/></TextBlock>
  159. </Button>
  160. <!--Column3-->
  161. <Button Grid.Column="2" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  162. Style="{StaticResource MaterialDesignRaisedButton}"
  163. materialDesign:ButtonAssist.CornerRadius="10"
  164. Command="{Binding SelectAxisCommand}"
  165. CommandParameter="Axis_CarrierLock_Right"
  166. BorderBrush="{Binding RightAxisBrush}"
  167. BorderThickness="2">
  168. <StackPanel>
  169. <TextBlock VerticalAlignment="Center"
  170. HorizontalAlignment="Center">
  171. <Run Text="Clamp" FontSize="20"/>
  172. </TextBlock>
  173. <TextBlock><Run Text="Axis Rigt" FontSize="20"/></TextBlock>
  174. </StackPanel>
  175. </Button>
  176. <Button Background="{x:Null}" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  177. Style="{StaticResource MaterialDesignRaisedButton}"
  178. materialDesign:ButtonAssist.CornerRadius="10">
  179. <Button.InputBindings>
  180. <MouseBinding Gesture="LeftClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Right"/>
  181. </Button.InputBindings>
  182. <TextBlock><Run Text="{Binding TargetPosLockRight, StringFormat=0.000, FallbackValue=0.000}" FontSize="20"/></TextBlock>
  183. </Button>
  184. <Button Background="{x:Null}" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  185. Style="{StaticResource MaterialDesignRaisedButton}"
  186. materialDesign:ButtonAssist.CornerRadius="10">
  187. <TextBlock><Run Text="{Binding CurrentLockRight, StringFormat=0.000, FallbackValue=0.000}" FontSize="20"/></TextBlock>
  188. </Button>
  189. <Button Background="{x:Null}" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  190. Style="{StaticResource MaterialDesignRaisedButton}"
  191. materialDesign:ButtonAssist.CornerRadius="10">
  192. <TextBlock><Run Text="{Binding DifferenceLockRight, StringFormat=0.000, FallbackValue=0.000}" FontSize="20"/></TextBlock>
  193. </Button>
  194. <!--Axis State-->
  195. <Border BorderThickness="3" BorderBrush="Aqua" Grid.Column="3" Grid.ColumnSpan="4" Grid.RowSpan="4" />
  196. <Button Background="{x:Null}" Grid.Column="3" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  197. Style="{StaticResource MaterialDesignRaisedButton}"
  198. materialDesign:ButtonAssist.CornerRadius="10">
  199. <TextBlock><Run Text="Left Axis" FontSize="20"/></TextBlock>
  200. </Button>
  201. <Button Background="{x:Null}" Grid.Column="4" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  202. Style="{StaticResource MaterialDesignRaisedButton}"
  203. materialDesign:ButtonAssist.CornerRadius="10">
  204. <TextBlock><Run Text="Right Axis" FontSize="18"/></TextBlock>
  205. </Button>
  206. <Button Grid.Column="3" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  207. Style="{StaticResource MaterialDesignRaisedButton}"
  208. materialDesign:ButtonAssist.CornerRadius="10"
  209. Background="{c:Binding 'IsLeftServoOn ? media:Brushes.DodgerBlue : media:Brushes.Transparent'}">
  210. <StackPanel>
  211. <TextBlock HorizontalAlignment="Center"><Run Text="Servo On"/></TextBlock>
  212. </StackPanel>
  213. </Button>
  214. <Button Grid.Column="3" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  215. Style="{StaticResource MaterialDesignRaisedButton}"
  216. materialDesign:ButtonAssist.CornerRadius="10" Background="{c:Binding 'IsLeftServoOriginReturn ? media:Brushes.DodgerBlue : media:Brushes.Transparent'}">
  217. <StackPanel>
  218. <TextBlock HorizontalAlignment="Center" TextWrapping="Wrap"><Run Text="Origin Return"/></TextBlock>
  219. </StackPanel>
  220. </Button>
  221. <Button Grid.Column="3" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  222. Style="{StaticResource MaterialDesignRaisedButton}"
  223. materialDesign:ButtonAssist.CornerRadius="10" Background="{c:Binding 'IsLeftServoFault ? media:Brushes.DodgerBlue : media:Brushes.Transparent'}">
  224. <StackPanel>
  225. <TextBlock HorizontalAlignment="Center" TextWrapping="Wrap"><Run Text="Servo Fault"/></TextBlock>
  226. </StackPanel>
  227. </Button>
  228. <!--Right-->
  229. <Border BorderBrush="#FF00FFD3" BorderThickness="2" Margin="7,79,20,-5" Grid.ColumnSpan="5" RenderTransformOrigin="0.5,0.5" Grid.Row="3">
  230. <Border.RenderTransform>
  231. <TransformGroup>
  232. <ScaleTransform ScaleX="-1"/>
  233. <SkewTransform/>
  234. <RotateTransform/>
  235. <TranslateTransform/>
  236. </TransformGroup>
  237. </Border.RenderTransform>
  238. </Border>
  239. <Button Grid.Column="4" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  240. Style="{StaticResource MaterialDesignRaisedButton}"
  241. materialDesign:ButtonAssist.CornerRadius="10" Background="{c:Binding 'IsRightServoOn ? media:Brushes.DodgerBlue : media:Brushes.Transparent'}">
  242. <StackPanel>
  243. <TextBlock HorizontalAlignment="Center"><Run Text="Servo On"/></TextBlock>
  244. </StackPanel>
  245. </Button>
  246. <Button Grid.Column="4" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  247. Style="{StaticResource MaterialDesignRaisedButton}"
  248. materialDesign:ButtonAssist.CornerRadius="10" Background="{c:Binding 'IsRightServoOriginReturn ? media:Brushes.DodgerBlue : media:Brushes.Transparent'}">
  249. <StackPanel>
  250. <TextBlock HorizontalAlignment="Center" TextWrapping="Wrap"><Run Text="Origin Return"/></TextBlock>
  251. </StackPanel>
  252. </Button>
  253. <Button Grid.Column="4" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
  254. Style="{StaticResource MaterialDesignRaisedButton}"
  255. materialDesign:ButtonAssist.CornerRadius="10" Background="{c:Binding 'IsRightServoFault ? media:Brushes.DodgerBlue : media:Brushes.Transparent'}">
  256. <StackPanel>
  257. <TextBlock HorizontalAlignment="Center" TextWrapping="Wrap"><Run Text="Servo Fault"/></TextBlock>
  258. </StackPanel>
  259. </Button>
  260. <Border BorderBrush="#FF00FFD3" BorderThickness="2" Grid.Column="1" Margin="78,102,39,-269" Grid.Row="3"/>
  261. </Grid>
  262. <Grid Grid.Row="1">
  263. <Grid.ColumnDefinitions>
  264. <ColumnDefinition Width="*"/>
  265. <ColumnDefinition Width="2*"/>
  266. </Grid.ColumnDefinitions>
  267. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  268. <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" >
  269. <!--<Button
  270. Style="{StaticResource MaterialDesignRaisedButton}"
  271. materialDesign:ButtonAssist.CornerRadius="10"
  272. ToolTip="MaterialDesignRaisedButton with Round Corners"
  273. Margin="15"
  274. Height="auto"
  275. HorizontalAlignment="Center"
  276. VerticalAlignment="Center"
  277. >
  278. <StackPanel>
  279. <TextBlock><Run Text="Limit(-)"/></TextBlock>
  280. </StackPanel>
  281. </Button>-->
  282. <!--<Button
  283. Style="{StaticResource MaterialDesignRaisedButton}"
  284. materialDesign:ButtonAssist.CornerRadius="10"
  285. ToolTip="MaterialDesignRaisedButton with Round Corners"
  286. Margin="15"
  287. Height="auto"
  288. HorizontalAlignment="Center"
  289. VerticalAlignment="Center"
  290. >
  291. <StackPanel>
  292. <TextBlock><Run Text="Origin"/></TextBlock>
  293. </StackPanel>
  294. </Button>-->
  295. <!--<Button
  296. Style="{StaticResource MaterialDesignRaisedButton}"
  297. materialDesign:ButtonAssist.CornerRadius="10"
  298. ToolTip="MaterialDesignRaisedButton with Round Corners"
  299. Margin="15"
  300. Height="auto"
  301. HorizontalAlignment="Center"
  302. VerticalAlignment="Center">
  303. <StackPanel>
  304. <TextBlock><Run Text="Limit(+)"/></TextBlock>
  305. </StackPanel>
  306. </Button>-->
  307. </StackPanel>
  308. <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center"
  309. Width="Auto" Height="120">
  310. <Button
  311. x:Name="M"
  312. Margin="5"
  313. Grid.Row="2"
  314. Grid.Column="1"
  315. HorizontalAlignment="Stretch"
  316. Height="auto"
  317. Width="90" PreviewMouseDown="Button_PreviewMouseDown" PreviewMouseUp="Button_PreviewMouseUp">
  318. <i:Interaction.Triggers>
  319. <i:EventTrigger EventName="TouchDown">
  320. <i:InvokeCommandAction Command="{Binding JogCommand}" CommandParameter="-"/>
  321. </i:EventTrigger>
  322. <i:EventTrigger EventName="TouchUp">
  323. <i:InvokeCommandAction Command="{Binding JogStopCommand}"/>
  324. </i:EventTrigger>
  325. </i:Interaction.Triggers>
  326. <StackPanel>
  327. <materialDesign:PackIcon Kind="MinusBoxOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
  328. <TextBlock><Run Text="Jog(-)" FontSize="20"/></TextBlock>
  329. </StackPanel>
  330. </Button>
  331. <materialDesign:Badged
  332. Grid.Row="2"
  333. Grid.Column="2"
  334. Badge="Jog Velocity"
  335. BadgeColorZoneMode="Dark"
  336. BadgePlacementMode="Top"
  337. BadgeForeground="Aqua"
  338. VerticalAlignment="Center"
  339. HorizontalAlignment="Center">
  340. <Button Margin="15" VerticalAlignment="Center" HorizontalAlignment="Center" Height="80" Width="70"
  341. Command="{Binding JogVelPopupCommand}">
  342. <StackPanel>
  343. <TextBlock Text="{Binding JogVelocity, StringFormat={}{0:0.000}, FallbackValue=0.00}" Foreground="Orange" FontSize="20"/>
  344. </StackPanel>
  345. </Button>
  346. </materialDesign:Badged>
  347. <Button
  348. Margin="5"
  349. Grid.Row="2"
  350. Grid.Column="3"
  351. HorizontalAlignment="Stretch"
  352. Height="auto"
  353. Width="90" PreviewMouseDown="Button_PreviewMouseDown" PreviewMouseUp="Button_PreviewMouseUp">
  354. <i:Interaction.Triggers>
  355. <i:EventTrigger EventName="TouchDown">
  356. <i:InvokeCommandAction Command="{Binding JogCommand}" CommandParameter="+"/>
  357. </i:EventTrigger>
  358. <i:EventTrigger EventName="TouchUp">
  359. <i:InvokeCommandAction Command="{Binding JogStopCommand}"/>
  360. </i:EventTrigger>
  361. </i:Interaction.Triggers>
  362. <StackPanel>
  363. <materialDesign:PackIcon Kind="PlusBoxOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
  364. <TextBlock><Run Text="Jog(+)" FontSize="20"/></TextBlock>
  365. </StackPanel>
  366. </Button>
  367. </StackPanel>
  368. </StackPanel>
  369. <Grid Grid.Column="0" Margin="5,20,0,0">
  370. <Grid>
  371. <Grid.RowDefinitions>
  372. <RowDefinition Height="*"/>
  373. <RowDefinition Height="*"/>
  374. <RowDefinition Height="*"/>
  375. <RowDefinition Height="*"/>
  376. </Grid.RowDefinitions>
  377. <Button Margin="3" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="0" Width="Auto" Height="Auto" BorderBrush="{Binding PosLockBrush}" BorderThickness="2"
  378. Command="{Binding SelectPosCommand}"
  379. CommandParameter="Teach_Postion_Lock">
  380. <StackPanel>
  381. <TextBlock Text="Clamp" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  382. <TextBlock Text="Lock" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  383. </StackPanel>
  384. </Button>
  385. <Button Margin="3" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="1" Width="Auto" Height="Auto" BorderBrush="{Binding PosUnlockBrush}" BorderThickness="2"
  386. Command="{Binding SelectPosCommand}"
  387. CommandParameter="Teach_Postion_Unlock">
  388. <StackPanel>
  389. <TextBlock Text="Clamp" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  390. <TextBlock Text="UnLock" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  391. </StackPanel>
  392. </Button>
  393. </Grid>
  394. </Grid>
  395. </Grid>
  396. </Grid>
  397. </Grid>
  398. <Grid Grid.Column="1" Background="#37474f" Grid.RowSpan="2">
  399. <StackPanel>
  400. <Button Margin="10,10,10,5" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding MoveToCommand}"
  401. Style="{DynamicResource MaterialDesignRaisedButton}"
  402. materialDesign:ShadowAssist.ShadowDepth="Depth5">
  403. <StackPanel>
  404. <!--<materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
  405. <TextBlock Text="Move To" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  406. </StackPanel>
  407. </Button>
  408. <Button Margin="10,10,10,5" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding CurrentToTargetCommand}"
  409. Style="{DynamicResource MaterialDesignRaisedButton}"
  410. materialDesign:ShadowAssist.ShadowDepth="Depth5">
  411. <StackPanel>
  412. <!--<materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
  413. <TextBlock Text="Current" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  414. <TextBlock Text="To Target" FontSize="18" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  415. </StackPanel>
  416. </Button>
  417. </StackPanel>
  418. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,40,0,0">
  419. <Button Margin="10,10,10,10" HorizontalAlignment="Stretch" Height="90" Width="110" BorderBrush="Gray" BorderThickness="2" Command="{Binding AllOriginCommand}"
  420. Style="{DynamicResource MaterialDesignRaisedButton}"
  421. materialDesign:ShadowAssist.ShadowDepth="Depth5">
  422. <StackPanel>
  423. <!--<materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
  424. <TextBlock Text="ALL" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  425. <TextBlock Text="Origin" FontSize="18" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  426. </StackPanel>
  427. </Button>
  428. </StackPanel>
  429. </Grid>
  430. <Grid Grid.Column="2" HorizontalAlignment="Stretch" Background="#263238" Grid.RowSpan="2">
  431. <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  432. <StackPanel>
  433. <Button Margin="10,10,10,5" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOnCommand}">
  434. <StackPanel>
  435. <materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  436. <TextBlock Text="Servo On" FontSize="18" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  437. </StackPanel>
  438. </Button>
  439. <Button Margin="10,10,10,5" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOffCommand}">
  440. <StackPanel>
  441. <materialDesign:PackIcon Kind="PowerPlugOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  442. <TextBlock Text="Servo Off" FontSize="18" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  443. </StackPanel>
  444. </Button>
  445. <Button Margin="10,10,10,5" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding FaultResetCommand}">
  446. <StackPanel>
  447. <materialDesign:PackIcon Kind="CircleArrows" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  448. <TextBlock Text="Fault Reset" FontSize="16" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  449. </StackPanel>
  450. </Button>
  451. <Button Margin="10,10,10,5" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding OriginCommand}">
  452. <StackPanel>
  453. <materialDesign:PackIcon Kind="Origin" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  454. <TextBlock Text="Origin" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  455. </StackPanel>
  456. </Button>
  457. </StackPanel>
  458. <StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
  459. <Button Margin="10,0,10,10" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2"
  460. Style="{DynamicResource MaterialDesignRaisedButton}"
  461. materialDesign:ShadowAssist.ShadowDepth="Depth5"
  462. Command="{Binding SelectedPosDataSave}">
  463. <StackPanel>
  464. <materialDesign:PackIcon Kind="ContentSave" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  465. <TextBlock Text="SAVE" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
  466. </StackPanel>
  467. </Button>
  468. <Button Margin="10,0,10,10" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
  469. <StackPanel>
  470. <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  471. <TextBlock Text="Close" FontSize="20" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  472. </StackPanel>
  473. </Button>
  474. </StackPanel>
  475. </Grid>
  476. <!--<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5,0,0">
  477. <Button x:Name="btnSend" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Margin="0,0,20,0" Height="25" Command="{Binding CloseDialogCommand}" CommandParameter="true" Content="확인" Background="#FF1368BD" Style="{StaticResource MaterialDesignRaisedButton}"/>
  478. -->
  479. <!--Style="{DynamicResource btn_Send}"-->
  480. <!--
  481. <Button x:Name="btnCancel" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="25" Content="취소" Command="{Binding CloseDialogCommand}" CommandParameter="false" Background="#FF1368BD" Style="{StaticResource MaterialDesignRaisedButton}"/>
  482. -->
  483. <!--Style="{DynamicResource btn_Close}"-->
  484. <!--
  485. </StackPanel>-->
  486. </Grid>
  487. </Border>
  488. </UserControl>