1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <UserControl x:Class="VirgoUI.Controls.Parts.LoadPort"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:VirgoUI.Controls.Parts"
- xmlns:parts="clr-namespace:VirgoUI.Client.Controls.Parts"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300">
- <UserControl.Resources>
- <local:LoadportCassetteStateConverter x:Key="loadportCassetteStateConverter" />
- <local:FoupDoorStateConverter x:Key="foupDoorStateConverter" />
- </UserControl.Resources>
- <Viewbox>
- <Grid x:Name="root">
- <Grid.RowDefinitions>
- <RowDefinition Height="14" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <parts:Door State="{Binding DoorState}" />
- <Grid VerticalAlignment="Top" Grid.Row="1" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}">
- <Grid.ContextMenu>
- <ContextMenu>
- <MenuItem Header="Home" Click="MenuItem_Click" Tag="LoadportHome" />
- <MenuItem Header="Abort" Click="MenuItem_Click" Tag="LoadportAbort" />
- <MenuItem Header="Stop" Click="MenuItem_Click" Tag="LoadportStop" />
- <Separator />
- <MenuItem Header="Clamp" Click="MenuItem_Click" Tag="LoadportClamp" />
- <MenuItem Header="Unlamp" Click="MenuItem_Click" Tag="LoadportUnlamp" />
- <MenuItem Header="Load" Click="MenuItem_Click" Tag="LoadportLoad" />
- <MenuItem Header="Unload" Click="MenuItem_Click" Tag="LoadportUnload" />
- <MenuItem Header="Open Door" Click="MenuItem_Click" Tag="LoadportOpenDoor" />
- <MenuItem Header="Close Door" Click="MenuItem_Click" Tag="LoadportCloseDoor" />
- <MenuItem Header="Dock" Click="MenuItem_Click" Tag="LoadportDock" />
- <MenuItem Header="Undock" Click="MenuItem_Click" Tag="LoadportUndock" />
- <MenuItem Header="Map" Click="MenuItem_Click" Tag="LoadportMap" />
- </ContextMenu>
- </Grid.ContextMenu>
- <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" />
- <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" />
- <Grid.RenderTransform>
- <TransformGroup>
- <RotateTransform CenterX="50" CenterY="51" Angle="{Binding RotateAngel}"></RotateTransform>
- </TransformGroup>
- </Grid.RenderTransform>
- </Grid>
- <!--<Grid Grid.Row="1" Background="Gray" Height="30" Width="60" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Label HorizontalAlignment="Center" VerticalAlignment="Center" Content="{Binding Label}" Foreground="White"></Label>
- </Grid>-->
- </Grid>
- </Viewbox>
- </UserControl>
|