RecipeInfoEditor.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <Window x:Class="Aitex.UI.RecipeEditor.View.RecipeInfoEditor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:recipeEditor="clr-namespace:Aitex.UI.RecipeEditor"
  5. Title="{DynamicResource GlobalLableInfoProperty}" Height="430" Width="680" ResizeMode="NoResize" Topmost="True" ShowInTaskbar="True" Background="#FFC5D0D8" WindowStartupLocation="CenterOwner">
  6. <Window.Resources>
  7. <recipeEditor:BoolConverter x:Key="boolConverter"/>
  8. </Window.Resources>
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="343*" />
  12. <RowDefinition Height="45" />
  13. </Grid.RowDefinitions>
  14. <StackPanel>
  15. <GroupBox Header="{DynamicResource GlobalLableInfoOwner}" FontSize="14" Height="101" VerticalAlignment="Top">
  16. <Grid>
  17. <Label Content="{DynamicResource GlobalLableInfoLastModifiedBy}" Height="28" HorizontalAlignment="Left" Margin="6,10,0,0" VerticalAlignment="Top" FontSize="13" />
  18. <Label Content="{Binding LastModifiedBy}" HorizontalAlignment="Left" Margin="139,10,0,47" FontSize="13" />
  19. <Label Content="{DynamicResource GlobalLableInfoLastRevisionTime}" Height="28" HorizontalAlignment="Left" Margin="6,42,0,0" VerticalAlignment="Top" FontSize="13" />
  20. <Label Content="{Binding LastRevisionTime}" Height="28" HorizontalAlignment="Left" Margin="139,42,0,0" VerticalAlignment="Top" FontSize="13" />
  21. <!--Label Content="压力模式:" Height="28" HorizontalAlignment="Left" Margin="6,48,0,0" VerticalAlignment="Top" FontSize="13" />
  22. <ComboBox Text="{Binding PressureMode,Mode=TwoWay}" IsEditable="True" Height="23" HorizontalAlignment="Left" Margin="89,51,0,0" Name="comboBox_PressureMode" VerticalAlignment="Top" Width="120" /-->
  23. </Grid>
  24. </GroupBox>
  25. <GroupBox Header="{DynamicResource GlobalLableInfoLastDescription}" FontSize="14" Height="80" VerticalAlignment="Center" >
  26. <TextBox x:Name="desc" Text="{Binding Description,Mode=OneWay}" Margin="0" Background="#8DFFFFFF" AcceptsReturn="True" AcceptsTab="True" />
  27. </GroupBox>
  28. <GroupBox Header="{DynamicResource GlobalLableInfoCommonSetting}" FontSize="14" Height="167" VerticalAlignment="Bottom">
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="75"/>
  32. <RowDefinition Height="75"/>
  33. </Grid.RowDefinitions>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="190" />
  36. <ColumnDefinition Width="150" />
  37. <ColumnDefinition Width="190" />
  38. <ColumnDefinition Width="150" />
  39. </Grid.ColumnDefinitions>
  40. <Rectangle Grid.Row="0" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  41. <TextBlock Grid.Row="0" Grid.Column="0" FontSize="15" Text="{DynamicResource GlobalLableInfoBasePressure}" Foreground="White" />
  42. <Rectangle Grid.Row="0" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  43. <TextBox Grid.Row="0" Grid.Column="1" PreviewTextInput="OnPreviewTextInput" TextAlignment="Center" FontSize="11" Width="130" Height="35" Margin="3,3,0,0" Padding="0,10,0,0" x:Name="basePressure" Text="{Binding BasePressure,Mode=OneWay}"/>
  44. <Rectangle Grid.Row="0" Grid.Column="2" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  45. <TextBlock Grid.Row="0" Grid.Column="2" FontSize="15" Text="{DynamicResource GlobalLableInfoPumpDownLimit}" Foreground="White" />
  46. <Rectangle Grid.Row="0" Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  47. <TextBox Grid.Row="0" Grid.Column="3" PreviewTextInput="OnPreviewTextInput" TextAlignment="Center" FontSize="11" Width="130" Height="35" Margin="3,3,0,0" Padding="0,10,0,0" x:Name="pumpDownLimit" Text="{Binding PumpDownLimit,Mode=OneWay}" />
  48. <Rectangle Grid.Row="1" Grid.Column="2" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  49. <TextBlock Grid.Row="1" Grid.Column="2" FontSize="15" Text="{DynamicResource GlobalLableInfoElectrodeTempCritical}" Foreground="White" />
  50. <Rectangle Grid.Row="1" Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  51. <TextBox Grid.Row="1" Grid.Column="3" PreviewTextInput="OnPreviewTextInput" TextAlignment="Center" FontSize="11" Width="130" Height="35" Margin="3,3,0,0" Padding="0,10,0,0" x:Name="electrodeTemp" Text="{Binding ElectrodeTemp,Mode=OneWay}" />
  52. <Rectangle Grid.Row="1" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  53. <TextBlock Grid.Row="1" Grid.Column="0" FontSize="15" Text="{DynamicResource GlobalLableInfoPurgeActive}" Foreground="White" />
  54. <Rectangle Grid.Row="1" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  55. <CheckBox Grid.Row="1" Grid.Column="1" Height="25" Margin="23,8,0,0" Padding="0,10,0,0" x:Name="purgeActive" IsChecked="{Binding Path=PurgeActive, Converter={StaticResource boolConverter}, Mode=OneWay}"/>
  56. </Grid>
  57. </GroupBox>
  58. </StackPanel>
  59. <Grid Grid.Row="1">
  60. <Button Content="{DynamicResource GlobalLableButtonOk}" Margin="254,10,0,0" Width="70" Height="24" HorizontalAlignment="Left" Click="Button_OK_Click" />
  61. <Button Content="{DynamicResource GlobalLableButtonCancel}" Margin="385,10,0,0" Width="70" Height="24" HorizontalAlignment="Left" Click="Button_Cancel_Click" />
  62. </Grid>
  63. </Grid>
  64. </Window>