RinseHomePageView.xaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <UserControl x:Class="PunkHPX8_MainPages.Views.RinseHomePageView"
  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:PunkHPX8_MainPages.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"
  9. xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters;assembly=PunkHPX8_Themes"
  10. prism:ViewModelLocator.AutoWireViewModel="True"
  11. mc:Ignorable="d" x:Name="self"
  12. d:DesignHeight="800" d:DesignWidth="1850">
  13. <UserControl.Resources>
  14. <converters:BoolToColor x:Key="boolToColor"/>
  15. <converters:RecipeIconConverter x:Key="recipeIconConverter"/>
  16. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  17. <Style.Setters>
  18. <Setter Property="Text" Value="UnClamped"/>
  19. </Style.Setters>
  20. <Style.Triggers>
  21. <DataTrigger Binding="{Binding ClampStatus}" Value="True">
  22. <Setter Property="Text" Value="Clamped"></Setter>
  23. </DataTrigger>
  24. </Style.Triggers>
  25. </Style>
  26. </UserControl.Resources>
  27. <Grid>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="5"/>
  30. <RowDefinition Height="190"/>
  31. <RowDefinition Height="250"/>
  32. <RowDefinition Height="355"/>
  33. <RowDefinition/>
  34. </Grid.RowDefinitions>
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition Width="610"></ColumnDefinition>
  37. <ColumnDefinition Width="400"></ColumnDefinition>
  38. <ColumnDefinition Width="610"></ColumnDefinition>
  39. <ColumnDefinition Width="230"></ColumnDefinition>
  40. <ColumnDefinition/>
  41. </Grid.ColumnDefinitions>
  42. <Grid Grid.Row="1" Grid.Column="0">
  43. <UserControls:SrdOverviewInformationPanel HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  44. ModuleTitle="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  45. RecipeContentValue="{Binding CurrentRecipe}"
  46. TimeRemainingValue="{Binding TimeRemaining}"
  47. TotalTimeValue="{Binding TotalTime}"
  48. StateValue="{Binding State}"
  49. OperatingModeValue="{Binding RinsePersistent.OperatingMode}"
  50. RecipeModeValue="{Binding RinsePersistent.RecipeOperatingMode}"/>
  51. </Grid>
  52. <Grid Grid.Row="1" Grid.Column="2" Grid.RowSpan="2">
  53. <UserControls:RecipeControl HorizontalAlignment="Center" Margin="10,0,0,0" VerticalAlignment="Center"
  54. ModuleName="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  55. ModuleTitle="{Binding RecipeModuleName}"
  56. RecipeType="{Binding RecipeType}"
  57. SelectedRecipeNode="{Binding SelectedRecipeNode,Mode=TwoWay}"
  58. CurrentOperationMode="{Binding RinsePersistent.OperatingMode}"
  59. AchievedCycleTimes="{Binding AchievedRunRecipeCycle}"
  60. RecipeModeValue ="{Binding RinsePersistent.RecipeOperatingMode}"
  61. />
  62. </Grid>
  63. <Grid Grid.Row="1" Grid.Column="3">
  64. <Grid.RowDefinitions>
  65. <RowDefinition Height="50"></RowDefinition>
  66. <RowDefinition Height="120"></RowDefinition>
  67. </Grid.RowDefinitions>
  68. <Grid Grid.Row="0">
  69. <Label Content="{Binding Module}" FontSize="30" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Label>
  70. </Grid>
  71. <Grid Grid.Row="1">
  72. <Button IsEnabled="{Binding IsAutoEnabled}" Style="{StaticResource SysBtnStyle}" Height="30" Width="120" VerticalAlignment="Top" HorizontalAlignment="Center" Content="Initialize" Command="{Binding InitializeCommand}" />
  73. </Grid>
  74. </Grid>
  75. <Grid Grid.Row="2" Grid.Column="0" Grid.RowSpan="2" Margin="0,100,0,0">
  76. <Grid.RowDefinitions>
  77. <RowDefinition Height="40"></RowDefinition>
  78. <RowDefinition Height="40"></RowDefinition>
  79. <RowDefinition Height="40"></RowDefinition>
  80. <RowDefinition Height="40"></RowDefinition>
  81. <RowDefinition Height="40"></RowDefinition>
  82. <RowDefinition Height="40"></RowDefinition>
  83. </Grid.RowDefinitions>
  84. <Grid.ColumnDefinitions>
  85. <ColumnDefinition Width="200"></ColumnDefinition>
  86. <ColumnDefinition Width="400"></ColumnDefinition>
  87. <ColumnDefinition/>
  88. </Grid.ColumnDefinitions>
  89. <Label Grid.Row="0" IsEnabled="{Binding IsEnabled}" Grid.Column="0" Content="Water Level" FontSize="20" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  90. <Label Grid.Row="1" IsEnabled="{Binding IsEnabled}" Grid.Column="0" Content="Clamp Status" FontSize="20" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  91. <Label Grid.Row="2" IsEnabled="{Binding IsEnabled}" Grid.Column="0" Content="Resistivity" FontSize="20" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  92. <Label Grid.Row="4" IsEnabled="{Binding IsEnabled}" Grid.Column="0" Content="Status" FontSize="20" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  93. <Label Grid.Row="5" IsEnabled="{Binding IsEnabled}" Grid.Column="0" Content="State Machine" FontSize="20" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  94. <Border Background="Black" Grid.Row="0" Grid.Column="1" Margin="5,5,200,5">
  95. <TextBlock Text="{Binding RinseCommonData.WaterLevel}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  96. </Border>
  97. <Border Background="Black" Grid.Row="1" Grid.Column="1" Margin="5,5,200,5">
  98. <TextBlock Text="{Binding ClampStatus}" Style="{StaticResource TextBlockStyle}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  99. </Border>
  100. <Border Background="Black" Grid.Row="2" Grid.Column="1" Margin="5,5,200,5">
  101. <TextBlock Text="{Binding RinseCommonData.Resistivity, StringFormat={}{0:F2}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  102. </Border>
  103. <Border Background="Black" Grid.Row="2" Grid.Column="1" Margin="205,5,160,5">
  104. <TextBlock Text="Mo" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  105. </Border>
  106. <Border Background="Black" Grid.Row="4" Grid.Column="1" Margin="5,5,50,5">
  107. <TextBlock Text="{Binding Status}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  108. </Border>
  109. <Border Background="Black" Grid.Row="5" Grid.Column="1" Margin="5,5,50,5">
  110. <TextBlock Text="{Binding StateMachine}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  111. </Border>
  112. </Grid>
  113. <Grid Grid.Row="1" Grid.Column="3" Grid.RowSpan="2">
  114. <Label Content="Operating Mode" FontSize="15" FontWeight="Bold" Margin="20,90,20,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Top" HorizontalAlignment="Center"></Label>
  115. <UserControls:OperatingModeControl HorizontalAlignment="Center" Margin="20,0,20,45" VerticalAlignment="Center"
  116. ModuleName="{Binding Module}"
  117. OperationModeValue="{Binding RinsePersistent.OperatingMode}"
  118. />
  119. </Grid>
  120. <Grid Grid.Row="2" Grid.Column="3">
  121. </Grid>
  122. <Grid Grid.Row="2" Grid.Column="3">
  123. </Grid>
  124. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="2">
  125. <UserControls:RinseUIControl HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="450" Width="800" Margin="0,0,0,50"
  126. ModuleName="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  127. InterLock="{Binding InterLock,Mode=TwoWay}" IsWaferHolder="{Binding IsWaferHolder}"
  128. RinseCommonData="{Binding RinseCommonData}"
  129. IsError="{Binding IsErrorState}"
  130. UIWaterLevel="{Binding UIWaterLevel}"
  131. />
  132. </Grid>
  133. </Grid>
  134. </UserControl>