AlignerView.xaml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.AlignerView"
  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:Aitex.Sorter.UI.Views"
  7. mc:Ignorable="d"
  8. xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
  9. xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  10. xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
  11. d:DesignHeight="800" d:DesignWidth="1800">
  12. <UserControl.Resources>
  13. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  14. <Setter Property="VerticalAlignment" Value="Center" />
  15. <Setter Property="HorizontalAlignment" Value="Center" />
  16. </Style>
  17. </UserControl.Resources>
  18. <Grid x:Name="root">
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*" />
  21. </Grid.ColumnDefinitions>
  22. <uc:HeaderPanel Grid.Column="1" Grid.Row="1" Width="530" Height="540" HorizontalAlignment="Center" VerticalAlignment="Center" Header="Aligner" Margin="10,0,0,0">
  23. <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="*" />
  26. <ColumnDefinition Width="*"/>
  27. </Grid.ColumnDefinitions>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="*" />
  30. <RowDefinition Height="*" />
  31. <RowDefinition Height="*" />
  32. <RowDefinition Height="*" />
  33. <RowDefinition Height="*" />
  34. <RowDefinition Height="*" />
  35. <RowDefinition Height="*" />
  36. <RowDefinition Height="*" />
  37. <RowDefinition Height="*" />
  38. </Grid.RowDefinitions>
  39. <Label Grid.Row="0" Grid.Column="0" Content="Is Initialized" />
  40. <ctrlCommon:LED On="{Binding AlignerInitialized}" Grid.Row="0" Grid.Column="1" />
  41. <Label Grid.Row="1" Grid.Column="0" Content="Is Busy"/>
  42. <ctrlCommon:LED On="{Binding AlignerIsBusy}" Grid.Row="1" Grid.Column="1" />
  43. <Label Grid.Row="2" Grid.Column="0" Content="Is Error" />
  44. <ctrlCommon:LED On="{Binding AlignerIsError}" Grid.Row="2" Grid.Column="1" />
  45. <Label Grid.Row="3" Grid.Column="0" Content="Elapse Time" />
  46. <Label Content="{Binding ElapseTime}" HorizontalAlignment="Center" Grid.Row="3" Grid.Column="1" />
  47. <Label Grid.Row="4" Grid.Column="0" Content="Notch" />
  48. <Label Content="{Binding Notch}" HorizontalAlignment="Center" Grid.Row="4" Grid.Column="1" />
  49. <Label Grid.Row="5" Grid.Column="0" Content="Is Wafer On Grip" />
  50. <ctrlCommon:LED On="false" Grid.Row="5" Grid.Column="1" />
  51. <Label Grid.Row="6" Grid.Column="0" Content="Is Wafer On CCD" />
  52. <ctrlCommon:LED On="false" Grid.Row="6" Grid.Column="1" />
  53. <TextBox Grid.Row="7" Grid.Column="0" Margin="8" Height="30" x:Name="txtAlignAngle" />
  54. <Button Grid.Row="7" Grid.Column="1" Content="Align" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerAlign}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=txtAlignAngle}"/>
  55. <StackPanel Orientation="Horizontal" Grid.Row="8" Grid.ColumnSpan="2">
  56. <Button Content="Home" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerHome}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  57. <Button Content="Reset" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerReset}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  58. <Button Content="Stop" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerStop}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}"/>
  59. </StackPanel>
  60. </Grid>
  61. </uc:HeaderPanel>
  62. </Grid>
  63. </UserControl>