SRDMoveControl.xaml 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <UserControl x:Class="CyberX8_Themes.UserControls.SRDMoveControl"
  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. mc:Ignorable="d" x:Name="self"
  9. d:DesignHeight="120" Width="495">
  10. <UserControl.Resources>
  11. <converters:BoolToColor x:Key="boolToColor"/>
  12. <converters:BoolToRedColor x:Key="boolToRedColor"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="40"/>
  17. <RowDefinition Height="40"/>
  18. <RowDefinition Height="40"/>
  19. <RowDefinition/>
  20. </Grid.RowDefinitions>
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="150"/>
  23. <ColumnDefinition Width="50"/>
  24. <ColumnDefinition Width="125"/>
  25. <ColumnDefinition Width="125"/>
  26. <ColumnDefinition Width="50"/>
  27. <ColumnDefinition/>
  28. </Grid.ColumnDefinitions>
  29. <Grid Grid.Row="0" Grid.Column="0">
  30. <Label Content="Door" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  31. </Grid>
  32. <!--<Grid Grid.Row="1" Grid.Column="0">
  33. <Label Content="Arm Position" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  34. </Grid>-->
  35. <Grid Grid.Row="1" Grid.Column="0">
  36. <Label Content="Rotation" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  37. </Grid>
  38. <Grid Grid.Row="0" Grid.Column="1">
  39. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Right" VerticalAlignment="Center" Stroke="Silver"
  40. Fill="{Binding CommonData.DoorClosed, Converter={StaticResource boolToColor}, ElementName=self}"/>
  41. </Grid>
  42. <Grid Grid.Row="0" Grid.Column="4">
  43. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Left" VerticalAlignment="Center" Stroke="Silver"
  44. Fill="{Binding CommonData.DoorOpened, Converter={StaticResource boolToColor}, ElementName=self}"/>
  45. </Grid>
  46. <Grid Grid.Row="0" Grid.Column="2">
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="5*"/>
  49. <RowDefinition/>
  50. <RowDefinition Height="4*"/>
  51. </Grid.RowDefinitions>
  52. <Button Style="{StaticResource SysBtnStyle}" Margin="0,8,0,7" Height="25" Width="100" HorizontalAlignment="Center" Content="Closed" Click="Closed_Click" Grid.RowSpan="3"/>
  53. </Grid>
  54. <Grid Grid.Row="0" Grid.Column="3">
  55. <Button Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Grid.Column="1" Height="25" Width="100" HorizontalAlignment="Center" Content="Open" Click="Open_Click"></Button>
  56. </Grid>
  57. <!--<Grid Grid.Row="1" Grid.Column="2">
  58. <Button Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Grid.Column="1" Height="25" Width="100" HorizontalAlignment="Center" Content="Out" Click="Out_Click"></Button>
  59. </Grid>-->
  60. <!--<Grid Grid.Row="1" Grid.Column="3">
  61. <Button Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Grid.Column="1" Height="25" Width="100" HorizontalAlignment="Center" Content="In" Click="In_Click"></Button>
  62. </Grid>-->
  63. <Grid Grid.Row="1" Grid.Column="2">
  64. <Grid.ColumnDefinitions>
  65. <ColumnDefinition Width="79*"/>
  66. <ColumnDefinition Width="46*"/>
  67. </Grid.ColumnDefinitions>
  68. <Button Style="{StaticResource SysBtnStyle}" Margin="12,8,0,8" Height="25" Width="100" HorizontalAlignment="Left" Content="Start" Click="Start_Click" Grid.ColumnSpan="2"/>
  69. </Grid>
  70. <Grid Grid.Row="1" Grid.Column="3">
  71. <Button Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Grid.Column="1" Height="25" Width="100" HorizontalAlignment="Center" Content="Stop" Click="Stop_Click"></Button>
  72. </Grid>
  73. <Grid Grid.Row="2" Grid.Column="2">
  74. <Grid.ColumnDefinitions>
  75. <ColumnDefinition Width="65"></ColumnDefinition>
  76. <ColumnDefinition Width="65"></ColumnDefinition>
  77. </Grid.ColumnDefinitions>
  78. <TextBox Grid.Column="0" Text="{Binding ElementName=self,Path=InputRotationTime,Mode=TwoWay}" Width="50" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="16" Height="22" />
  79. <TextBox IsEnabled="False" Grid.Column="1" Text="sec" Width="45" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="15" Height="22"/>
  80. </Grid>
  81. <Grid Grid.Row="2" Grid.Column="3">
  82. <Grid.ColumnDefinitions>
  83. <ColumnDefinition Width="65"></ColumnDefinition>
  84. <ColumnDefinition Width="65"></ColumnDefinition>
  85. </Grid.ColumnDefinitions>
  86. <TextBox Grid.Column="0" Text="{Binding ElementName=self,Path=InputRotationSpeed,Mode=TwoWay}" Width="50" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="16" Height="22" />
  87. <TextBox IsEnabled="False" Grid.Column="1" Text="rmp" Width="45" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="15" Height="22" />
  88. </Grid>
  89. </Grid>
  90. </UserControl>