AlignerNoHomeView.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.AlignerNoHomeView"
  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" IsEnabled="{Binding EnablePageControl}">
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*" />
  21. </Grid.ColumnDefinitions>
  22. <uc:HeaderPanel Width="530" Height="300" 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="35" />
  30. <RowDefinition Height="35" />
  31. <RowDefinition Height="35" />
  32. <RowDefinition Height="50" />
  33. <RowDefinition Height="50" />
  34. <RowDefinition Height="50" />
  35. </Grid.RowDefinitions>
  36. <!--<Label Grid.Row="0" Grid.Column="0" Content="Is Initialized" />
  37. <ctrlCommon:LED On="{Binding AlignerInitialized}" Grid.Row="0" Grid.Column="1" />-->
  38. <Label Grid.Row="0" Grid.Column="0" Content="Is Busy"/>
  39. <ctrlCommon:LED On="{Binding AlignerIsBusy}" Grid.Row="0" Grid.Column="1" />
  40. <Label Grid.Row="1" Grid.Column="0" Content="Is Error" />
  41. <ctrlCommon:LED On="{Binding AlignerIsError}" Grid.Row="1" Grid.Column="1" />
  42. <Label Grid.Row="2" Grid.Column="0" Content="Is Wafer On" />
  43. <ctrlCommon:LED On="{Binding WaferOnAligner}" Grid.Row="2" Grid.Column="1" />
  44. <TextBox Grid.Row="3" Grid.Column="0" Margin="8" Height="30" x:Name="txtAlignAngle" />
  45. <Button Grid.Row="3" Grid.Column="1" Content="Align" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="Align" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=txtAlignAngle}"/>
  46. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.ColumnSpan="2">
  47. <Button Content="Init" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="Init" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  48. <Button Content="Reset" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="Reset" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  49. <Button Content="Stop" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="Stop" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}"/>
  50. </StackPanel>
  51. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.ColumnSpan="2">
  52. <Button Content="Lift Up" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="LiftUp" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  53. <Button Content="Lift Down" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="LiftDown" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  54. </StackPanel>
  55. </Grid>
  56. </uc:HeaderPanel>
  57. </Grid>
  58. </UserControl>