ServoConfigView.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <UserControl x:Class="OHV.Module.Interactivity.PopUp.ServoConfigView"
  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:prism="http://prismlibrary.com/"
  7. xmlns:local="clr-namespace:OHV.Module.Interactivity.PopUp"
  8. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. mc:Ignorable="d"
  11. Width="1000"
  12. Height="600"
  13. Background="#455a64">
  14. <prism:Dialog.WindowStyle>
  15. <Style TargetType="Window">
  16. <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
  17. <Setter Property="Background" Value="Transparent"/>
  18. <Setter Property="AllowsTransparency" Value="True"/>
  19. <Setter Property="ResizeMode" Value="NoResize"/>
  20. <Setter Property="WindowStyle" Value="None"/>
  21. <Setter Property="BorderThickness" Value="1"/>
  22. <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
  23. <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
  24. <!--<Style.Triggers>
  25. <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
  26. <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
  27. </Trigger>
  28. </Style.Triggers>-->
  29. </Style>
  30. </prism:Dialog.WindowStyle>
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition/>
  34. <ColumnDefinition Width="130"/>
  35. </Grid.ColumnDefinitions>
  36. <Grid Grid.Column="0">
  37. <Grid Margin="15,15" Background="#37474f">
  38. <Grid.RowDefinitions>
  39. <RowDefinition Height="*"/>
  40. <RowDefinition Height="*"/>
  41. </Grid.RowDefinitions>
  42. <Grid Grid.Row="0">
  43. <Border Margin="5" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  44. <Button Background="{x:Null}" Foreground="Orange" Margin="10,10,568,226" Height="Auto">
  45. <TextBlock Text="Drive" FontSize="30"/>
  46. </Button>
  47. <StackPanel Orientation="Horizontal"
  48. HorizontalAlignment="Center"
  49. VerticalAlignment="Center">
  50. <StackPanel Orientation="Vertical"
  51. VerticalAlignment="Center">
  52. <Button Content="Name" Background="{x:Null}" FontSize="20"/>
  53. <Button Content="ID" Background="{x:Null}" FontSize="20"/>
  54. <Button Content="IP" Background="{x:Null}" FontSize="20"/>
  55. <Button Content="Scale" Background="{x:Null}" FontSize="20"/>
  56. </StackPanel>
  57. <StackPanel Orientation="Vertical"
  58. VerticalAlignment="Center">
  59. <Button Content="{Binding DriveName, FallbackValue=OHV_DRIVE}" FontSize="20" Background="{x:Null}"/>
  60. <Button Content="{Binding DriveID, FallbackValue=Drive}" FontSize="20" Background="{x:Null}"/>
  61. <Button Content="{Binding DriveIP, FallbackValue=192.168.0.1}" FontSize="20" Background="{x:Null}"/>
  62. <Button Content="{Binding DriveScale, FallbackValue=0.001}" FontSize="20" Background="{x:Null}"/>
  63. </StackPanel>
  64. </StackPanel>
  65. </Grid>
  66. <Grid Grid.Row="1">
  67. <Border Margin="5" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  68. <Button Background="{x:Null}" Foreground="Orange" Margin="10,10,568,226" Height="Auto">
  69. <TextBlock Text="Lock Servo" FontSize="30"/>
  70. </Button>
  71. <StackPanel Orientation="Horizontal"
  72. HorizontalAlignment="Center"
  73. VerticalAlignment="Center">
  74. <StackPanel Orientation="Vertical"
  75. VerticalAlignment="Center">
  76. <Button Content="Name" Background="{x:Null}" FontSize="20" Height="Auto"/>
  77. <Button Content="ID" Background="{x:Null}" FontSize="20" Height="Auto"/>
  78. <Button Content="IP" Background="{x:Null}" FontSize="20" Height="Auto"/>
  79. <Button Content="Scale" Background="{x:Null}" FontSize="20" Height="Auto"/>
  80. </StackPanel>
  81. <StackPanel Orientation="Vertical"
  82. VerticalAlignment="Center">
  83. <Button Content="{Binding LockLeftName, FallbackValue=Axis_CarrierLock_Left}" Background="{x:Null}" FontSize="20" Height="Auto"/>
  84. <Button Content="{Binding LockLeftID, FallbackValue=1}" Background="{x:Null}" FontSize="20" Height="Auto"/>
  85. <Button Content="{Binding LockLeftIP, FallbackValue=100.100.100.20}" Background="{x:Null}" FontSize="20" Height="Auto" />
  86. <Button Content="{Binding LockLeftScale, FallbackValue=0.001}" Background="{x:Null}" FontSize="20" Height="Auto"/>
  87. </StackPanel>
  88. <StackPanel Orientation="Vertical"
  89. VerticalAlignment="Center">
  90. <Button Content="{Binding LockRightName, FallbackValue=Axis_CarrierLock_Right}" FontSize="20" Background="{x:Null}" Height="Auto"/>
  91. <Button Content="{Binding LockRightID, FallbackValue=2}" FontSize="20" Background="{x:Null}" Height="Auto"/>
  92. <Button Content="{Binding LockRightIP, FallbackValue=100.100.100.21}" FontSize="20" Background="{x:Null}" Height="Auto"/>
  93. <Button Content="{Binding LockRightScale, FallbackValue=0.001}" FontSize="20" Background="{x:Null}" Height="Auto"/>
  94. </StackPanel>
  95. </StackPanel>
  96. </Grid>
  97. <!--<Border Margin="2,101,0,10" BorderBrush="#FF00FFD3"
  98. BorderThickness="1" VerticalAlignment="Stretch"
  99. HorizontalAlignment="Stretch" Grid.Column="1"
  100. Grid.ColumnSpan="3" Grid.RowSpan="2"/>
  101. <Button
  102. Style="{StaticResource MaterialDesignRaisedButton}"
  103. materialDesign:ButtonAssist.CornerRadius="10"
  104. ToolTip="MaterialDesignRaisedButton with Round Corners"
  105. Margin="10,20,10,20"
  106. Grid.Row="1"
  107. Grid.Column="1"
  108. Height="auto"
  109. HorizontalAlignment="Stretch">
  110. <StackPanel>
  111. <TextBlock><Run Text="Limit(-)"/></TextBlock>
  112. </StackPanel>
  113. </Button>
  114. <materialDesign:Badged
  115. Grid.Row="1"
  116. Grid.Column="2"
  117. Badge="Current Pos"
  118. BadgeColorZoneMode="Dark"
  119. BadgePlacementMode="Top"
  120. BadgeForeground="Aqua"
  121. VerticalAlignment="Center"
  122. HorizontalAlignment="Center"
  123. Height="auto">
  124. <Button Margin="15" VerticalAlignment="Center" HorizontalAlignment="Center" Height="50" >
  125. <StackPanel>
  126. <TextBlock Text="0.000"/>
  127. </StackPanel>
  128. </Button>
  129. </materialDesign:Badged>
  130. <Button
  131. Style="{StaticResource MaterialDesignRaisedButton}"
  132. materialDesign:ButtonAssist.CornerRadius="10"
  133. ToolTip="MaterialDesignRaisedButton with Round Corners"
  134. Margin="10,20,10,20"
  135. Grid.Row="1"
  136. Grid.Column="3"
  137. Height="auto"
  138. HorizontalAlignment="Stretch">
  139. <StackPanel>
  140. <TextBlock><Run Text="Limit(-)"/></TextBlock>
  141. </StackPanel>
  142. </Button>
  143. <Button
  144. Margin="5"
  145. Grid.Row="2"
  146. Grid.Column="1"
  147. HorizontalAlignment="Stretch"
  148. Height="auto">
  149. <StackPanel>
  150. <materialDesign:PackIcon Kind="ArrowLeftBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  151. <TextBlock><Run Text="Jog(-)"/></TextBlock>
  152. </StackPanel>
  153. </Button>
  154. <materialDesign:Badged
  155. Grid.Row="2"
  156. Grid.Column="2"
  157. Badge="Jog Velocity"
  158. BadgeColorZoneMode="Dark"
  159. BadgePlacementMode="Top"
  160. BadgeForeground="Aqua"
  161. VerticalAlignment="Center"
  162. HorizontalAlignment="Center">
  163. <Button Margin="15" VerticalAlignment="Center" HorizontalAlignment="Center" Height="60" Width="Auto" >
  164. <StackPanel>
  165. <TextBlock Text="0.000"/>
  166. </StackPanel>
  167. </Button>
  168. </materialDesign:Badged>
  169. <Button
  170. Margin="5"
  171. Grid.Row="2"
  172. Grid.Column="3"
  173. HorizontalAlignment="Stretch"
  174. Height="auto">
  175. <StackPanel>
  176. <materialDesign:PackIcon Kind="ArrowRightBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  177. <TextBlock><Run Text="Jog(+)"/></TextBlock>
  178. </StackPanel>
  179. </Button>-->
  180. </Grid>
  181. </Grid>
  182. <Grid Grid.Column="2" HorizontalAlignment="Stretch" Background="#263238">
  183. <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  184. <StackPanel>
  185. <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
  186. <StackPanel>
  187. <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  188. <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  189. </StackPanel>
  190. </Button>
  191. </StackPanel>
  192. </Grid>
  193. <!--<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5,0,0">
  194. <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}"/>
  195. -->
  196. <!--Style="{DynamicResource btn_Send}"-->
  197. <!--
  198. <Button x:Name="btnCancel" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="25" Content="취소" Command="{Binding CloseDialogCommand}" CommandParameter="false" Background="#FF1368BD" Style="{StaticResource MaterialDesignRaisedButton}"/>
  199. -->
  200. <!--Style="{DynamicResource btn_Close}"-->
  201. <!--
  202. </StackPanel>-->
  203. </Grid>
  204. </UserControl>