WaferHolderProcessCell.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl x:Class="CyberX8_Themes.UserControls.WaferHolderProcessCell"
  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:CyberX8_Themes.UserControls"
  7. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. mc:Ignorable="d" x:Name="self"
  9. d:DesignHeight="100" d:DesignWidth="30">
  10. <UserControl.Resources>
  11. <converters:BoolToVisibility3 x:Key="boolToVisibility3"/>
  12. <converters:IntToColorConverter x:Key="intToColorConvert"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <Viewbox Stretch="Fill">
  16. <Canvas MouseLeftButtonUp="Canvas_MouseLeftButtonUp" Width="30" Height="100" Background="{Binding ElementName=self, Path=CellStatus, Converter={StaticResource intToColorConvert}}">
  17. <Polygon Points="0,0 30,0 30,100 0,100" StrokeThickness="1" Stroke="Black"></Polygon>
  18. <local:WaferHolderControl Canvas.Top="-10" Width="25" Height="100" HorizontalAlignment="Left" VerticalAlignment="Center" Canvas.Left="3" IsWHEnable="{Binding ElementName=self,Path=IsWHEnable}"
  19. Visibility="{Binding ElementName=self, Path=WaferHolderVisible, Converter={StaticResource boolToVisibility3}}"/>
  20. <Label Content="{Binding ElementName=self, Path=CellName}" Canvas.Left="3" Canvas.Top="60" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Center">
  21. <Label.RenderTransform>
  22. <RotateTransform Angle="-90"></RotateTransform>
  23. </Label.RenderTransform>
  24. </Label>
  25. </Canvas>
  26. </Viewbox>
  27. </Grid>
  28. </UserControl>