PufLoaderControl.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <UserControl x:Class="CyberX8_Themes.UserControls.PufLoaderControl"
  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. mc:Ignorable="d" Name="pufLoaderControl"
  8. d:DesignHeight="300" d:DesignWidth="400">
  9. <Viewbox Stretch="Fill">
  10. <Canvas Width="800" Height="600">
  11. <Polygon Points="0,0 0,600 800,600 800,0" Stroke="Gray" StrokeThickness="12" >
  12. <Polygon.Fill>
  13. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  14. <GradientStop Color="Silver" Offset="0.0" />
  15. <GradientStop Color="White" Offset="0.5" />
  16. <GradientStop Color="Silver" Offset="1" />
  17. </LinearGradientBrush>
  18. </Polygon.Fill>
  19. </Polygon>
  20. <Canvas Height="310" Width="200" Canvas.Left="570" Canvas.Top="60" HorizontalAlignment="Center" VerticalAlignment="Center">
  21. <Canvas.RenderTransform>
  22. <TransformGroup>
  23. <RotateTransform Angle="{Binding ElementName=pufLoaderControl, Path=Loader1RotationPosition}" CenterX="100" CenterY="155"/>
  24. </TransformGroup>
  25. </Canvas.RenderTransform>
  26. <local:LoaderControl MouseLeftButtonUp="LoaderControl_MouseLeftButtonUp" HorizontalAlignment="Center" VerticalAlignment="Center" WaferVisibleA="{Binding ElementName=pufLoaderControl, Path=WaferVisibleA}" WaferVisibleB="{Binding ElementName=pufLoaderControl, Path=WaferVisibleB}"
  27. LoaderWaferA="{Binding ElementName=pufLoaderControl, Path=LoaderWaferA}" LoaderWaferB="{Binding ElementName=pufLoaderControl, Path=LoaderWaferB}"/>
  28. </Canvas>
  29. <Canvas Canvas.Top="40" Canvas.Left="{Binding ElementName=pufLoaderControl, Path=Puf1RotationPosition}" Height="150" Width="450" HorizontalAlignment="Left" VerticalAlignment="Center">
  30. <local:PufControl PufName="PUFA" MouseLeftButtonUp="Puf1Control_MouseLeftButtonUp" HorizontalAlignment="Center" VerticalAlignment="Top"
  31. RobotWaferA="{Binding ElementName=pufLoaderControl, Path=Puf1WaferA}" RobotWaferB="{Binding ElementName=pufLoaderControl, Path=Puf1WaferB}"
  32. PufFlipPosition="{Binding Puf1FlipPosition}"/>
  33. </Canvas>
  34. </Canvas>
  35. </Viewbox>
  36. </UserControl>