VceView.xaml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <UserControl x:Class="Venus_MainPages.Views.VceView"
  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:local="clr-namespace:Venus_MainPages.Views"
  7. xmlns:unity="clr-namespace:Venus_MainPages.Unity"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. xmlns:converters="clr-namespace:Venus_Themes.Converters;assembly=Venus_Themes"
  11. xmlns:ctrls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  12. xmlns:userControls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  13. xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
  14. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  15. mc:Ignorable="d"
  16. d:DesignHeight="1080" d:DesignWidth="1920">
  17. <Canvas>
  18. <Viewbox Height="130" Canvas.Left="100" Canvas.Top="80">
  19. <userControls:VceControl Width="150" Height="180" PositionZ="{Binding PositionZ,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" VceDoorIsOpen="{Binding VceDoorIsOpen}" CurrentSlot="{Binding CurrentSlot}" UnitData2="{Binding VCE1ModuleInfo}" ShowTitle1="True" />
  20. </Viewbox>
  21. <Grid Canvas.Top="20" Canvas.Right="40" Width="550">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="30"/>
  24. <RowDefinition Height="Auto"/>
  25. </Grid.RowDefinitions>
  26. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_FirstTitle}" Padding="5,1">
  27. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
  28. <Path Data="M0,0 L5,0 5,5 z" Fill="White" HorizontalAlignment="Left" Grid.Row="1" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Width="5" Height="5">
  29. <Path.RenderTransform>
  30. <TransformGroup>
  31. <ScaleTransform/>
  32. <SkewTransform/>
  33. <RotateTransform Angle="45"/>
  34. <TranslateTransform/>
  35. </TransformGroup>
  36. </Path.RenderTransform>
  37. </Path>
  38. <TextBlock Margin="5,0,0,0" Text="SeTM Robot Operation" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_White}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  39. </StackPanel>
  40. </Border>
  41. <Grid unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="Black" Grid.Row="1" Background="{DynamicResource Table_BG_Content}">
  42. <!--行数列数设置-->
  43. <Grid.RowDefinitions>
  44. <RowDefinition Height="25"/>
  45. <RowDefinition/>
  46. <RowDefinition/>
  47. <RowDefinition/>
  48. </Grid.RowDefinitions>
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition/>
  51. <ColumnDefinition/>
  52. <ColumnDefinition/>
  53. </Grid.ColumnDefinitions>
  54. <TextBlock Text="Module" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" />
  55. <TextBlock Text="Slot" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"/>
  56. <TextBlock Text="Operation" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"/>
  57. <!--第1行-->
  58. <ComboBox Grid.Row="1" Margin="5" SelectedItem="{Binding PickSelectedModule}" ItemsSource="{Binding TMModules}">
  59. <i:Interaction.Triggers>
  60. <i:EventTrigger EventName="SelectionChanged">
  61. <i:InvokeCommandAction Command="{Binding ModuleChangeCommand}" CommandParameter="Pick"/>
  62. </i:EventTrigger>
  63. </i:Interaction.Triggers>
  64. </ComboBox>
  65. <ComboBox Grid.Row="1" Grid.Column="1" Margin="5" ItemsSource="{Binding PickSoltItemsSource}" SelectedIndex="{Binding PickSoltSelectedIndex}"/>
  66. <Button Grid.Row="1" Grid.Column="2" Margin="5" Content="GoToSlot" Height="25" Command="{Binding GoToSlotCommand}"/>
  67. </Grid>
  68. </Grid>
  69. <StackPanel Canvas.Top="360" Canvas.Right="40" Width="550">
  70. <Grid >
  71. <Grid.RowDefinitions>
  72. <RowDefinition Height="30"/>
  73. <RowDefinition />
  74. <RowDefinition />
  75. </Grid.RowDefinitions>
  76. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_FirstTitle}" Padding="5,1">
  77. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
  78. <Path Data="M0,0 L5,0 5,5 z" Fill="White" HorizontalAlignment="Left" Grid.Row="1" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Width="5" Height="5">
  79. <Path.RenderTransform>
  80. <TransformGroup>
  81. <ScaleTransform/>
  82. <SkewTransform/>
  83. <RotateTransform Angle="45"/>
  84. <TranslateTransform/>
  85. </TransformGroup>
  86. </Path.RenderTransform>
  87. </Path>
  88. <TextBlock Margin="5,0,0,0" Text="VCE Control" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_White}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  89. </StackPanel>
  90. </Border>
  91. <!--<Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" BorderThickness="1,0,1,1" >
  92. <Grid >
  93. <Grid.RowDefinitions>
  94. <RowDefinition/>
  95. <RowDefinition/>
  96. <RowDefinition/>
  97. </Grid.RowDefinitions>
  98. <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center">
  99. <Button Content="OpenDoor" Margin="0,0,10,10" Width="80" Height="25" Command="{Binding OpenDoorCommand}"/>
  100. <Button Content="CloseDoor" Margin="0,0,10,10" Width="80" Height="25" Command="{Binding CloseDoorCommand}"/>
  101. --><!--<Button Content="VCEReadMap" Margin="0,0,10,10" Width="80" Height="25" Command="{Binding VCEReadMap}"/>--><!--
  102. <Button Content="Go to LP" Margin="0,0,10,10" Width="80" Height="25" Command="{Binding GoToLoadCommand}"/>
  103. </StackPanel>
  104. </Grid>
  105. </Border>-->
  106. <Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" BorderThickness="1,0,1,0" >
  107. <Grid >
  108. <Grid.RowDefinitions>
  109. <RowDefinition/>
  110. <RowDefinition/>
  111. <RowDefinition/>
  112. <RowDefinition/>
  113. </Grid.RowDefinitions>
  114. <Border BorderBrush="{DynamicResource Table_BD}" Grid.Row="1" Background="{DynamicResource Table_BG_Content}" BorderThickness="0,0,0,1" >
  115. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  116. <Button Content="VCEHome" Margin="0,10,10,10" Width="80" Height="25" Command="{Binding VCEHome}"/>
  117. <Button Content="VCEReadMap" Margin="0,10,10,10" Width="90" Height="25" Command="{Binding VCEReadMap}"/>
  118. </StackPanel>
  119. </Border>
  120. <Border BorderBrush="{DynamicResource Table_BD}" Grid.Row="2" Background="{DynamicResource Table_BG_Content}" BorderThickness="0,0,0,1" >
  121. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  122. <Button Content="VCELoadPrepare" Margin="0,10,10,10" Width="110" Height="25" Command="{Binding VCELoadPrepare}"/>
  123. <Button Content="VCELoad" Margin="0,10,10,10" Width="80" Height="25" Command="{Binding VCELoad}"/>
  124. <Button Content="VCEUnLoad" Margin="0,10,0,10" Width="90" Height="25" Command="{Binding VCEUnLoad}"/>
  125. </StackPanel>
  126. </Border>
  127. <Border BorderBrush="{DynamicResource Table_BD}" Grid.Row="3" Background="{DynamicResource Table_BG_Content}" BorderThickness="0,0,0,1" >
  128. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  129. <Button Content="OpenDoor" Margin="0,10,10,10" Width="110" Height="25" Command="{Binding OpenDoorCommand}"/>
  130. <Button Content="CloseDoor" Margin="0,10,10,10" Width="80" Height="25" Command="{Binding CloseDoorCommand}"/>
  131. <Button Content="GotoLoad" Margin="0,10,0,10" Width="90" Height="25" Command="{Binding GoToLoadCommand}"/>
  132. </StackPanel>
  133. </Border>
  134. </Grid>
  135. </Border>
  136. </Grid>
  137. </StackPanel>
  138. </Canvas>
  139. </UserControl>