LoadPort.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl x:Class="VirgoUI.Controls.Parts.LoadPort"
  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:VirgoUI.Controls.Parts"
  7. xmlns:parts="clr-namespace:VirgoUI.Client.Controls.Parts"
  8. mc:Ignorable="d"
  9. d:DesignHeight="300" d:DesignWidth="300">
  10. <UserControl.Resources>
  11. <local:LoadportCassetteStateConverter x:Key="loadportCassetteStateConverter" />
  12. <local:FoupDoorStateConverter x:Key="foupDoorStateConverter" />
  13. </UserControl.Resources>
  14. <Viewbox>
  15. <Grid x:Name="root">
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="14" />
  18. <RowDefinition Height="*" />
  19. </Grid.RowDefinitions>
  20. <parts:Door State="{Binding DoorState}" />
  21. <Grid VerticalAlignment="Top" Grid.Row="1" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}">
  22. <Grid.ContextMenu>
  23. <ContextMenu>
  24. <MenuItem Header="Home" Click="MenuItem_Click" Tag="LoadportHome" />
  25. <MenuItem Header="Abort" Click="MenuItem_Click" Tag="LoadportAbort" />
  26. <MenuItem Header="Stop" Click="MenuItem_Click" Tag="LoadportStop" />
  27. <Separator />
  28. <MenuItem Header="Clamp" Click="MenuItem_Click" Tag="LoadportClamp" />
  29. <MenuItem Header="Unlamp" Click="MenuItem_Click" Tag="LoadportUnlamp" />
  30. <MenuItem Header="Load" Click="MenuItem_Click" Tag="LoadportLoad" />
  31. <MenuItem Header="Unload" Click="MenuItem_Click" Tag="LoadportUnload" />
  32. <MenuItem Header="Open Door" Click="MenuItem_Click" Tag="LoadportOpenDoor" />
  33. <MenuItem Header="Close Door" Click="MenuItem_Click" Tag="LoadportCloseDoor" />
  34. <MenuItem Header="Dock" Click="MenuItem_Click" Tag="LoadportDock" />
  35. <MenuItem Header="Undock" Click="MenuItem_Click" Tag="LoadportUndock" />
  36. <MenuItem Header="Map" Click="MenuItem_Click" Tag="LoadportMap" />
  37. </ContextMenu>
  38. </Grid.ContextMenu>
  39. <Image Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" Source="/VirgoUI;component/Themes/images/parts/loadport.png" VerticalAlignment="Top" />
  40. <Image x:Name="cassette" Width="67" VerticalAlignment="Center" Source="/VirgoUI;component/Themes/images/parts/wafer.png" Visibility="{Binding CassetteState, Converter={StaticResource loadportCassetteStateConverter}}" Margin="0,0,0,0" />
  41. <Grid.RenderTransform>
  42. <TransformGroup>
  43. <RotateTransform CenterX="50" CenterY="51" Angle="{Binding RotateAngel}"></RotateTransform>
  44. </TransformGroup>
  45. </Grid.RenderTransform>
  46. </Grid>
  47. <!--<Grid Grid.Row="1" Background="Gray" Height="30" Width="60" HorizontalAlignment="Center" VerticalAlignment="Center">
  48. <Label HorizontalAlignment="Center" VerticalAlignment="Center" Content="{Binding Label}" Foreground="White"></Label>
  49. </Grid>-->
  50. </Grid>
  51. </Viewbox>
  52. </UserControl>