WaferHolderControl.xaml 1.5 KB

123456789101112131415161718192021222324
  1. <UserControl x:Class="CyberX8_Themes.UserControls.WaferHolderControl"
  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="150" d:DesignWidth="80">
  10. <UserControl.Resources>
  11. <Converters:BoolToColor8 x:Key="boolToColor8"/>
  12. </UserControl.Resources>
  13. <Grid>
  14. <Viewbox Stretch="Fill">
  15. <Canvas Width="80" Height="150">
  16. <Polygon Stroke="Black" StrokeThickness="1" Points="30,0 50,0 50,20 60,20 60,145 20,145 20,20 30,20 " Fill="{Binding ElementName=self,Path=IsWHEnable,Converter={StaticResource boolToColor8}}"></Polygon>
  17. <Line Stroke="Black" X1="30" X2="50" Y1="20" Y2="20" StrokeThickness="1" Fill="Black" HorizontalAlignment="Center" VerticalAlignment="Top"></Line>
  18. <Rectangle Width="10" Height="100" Fill="Black" Canvas.Left="15" Canvas.Top="40"></Rectangle>
  19. <Rectangle Width="10" Height="100" Fill="Black" Canvas.Left="55" Canvas.Top="40" HorizontalAlignment="Left" VerticalAlignment="Center"></Rectangle>
  20. </Canvas>
  21. </Viewbox>
  22. </Grid>
  23. </UserControl>