HvdRecipeView.xaml 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <UserControl xmlns:UserControls="clr-namespace:CyberX8_Themes.UserControls;assembly=CyberX8_Themes"
  2. x:Class="CyberX8_MainPages.Views.HvdRecipeView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:CyberX8_MainPages.Views"
  8. xmlns:prism="http://prismlibrary.com/"
  9. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  10. xmlns:converters="clr-namespace:CyberX8_MainPages.Converters"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. mc:Ignorable="d"
  13. d:DesignHeight="800" d:DesignWidth="1800" Loaded="UserControl_Loaded">
  14. <UserControl.Resources>
  15. <converters:BoolReverseConverter x:Key="boolReverseConverter"/>
  16. </UserControl.Resources>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="100"></RowDefinition>
  20. <RowDefinition/>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="50"></ColumnDefinition>
  24. <ColumnDefinition Width="400"></ColumnDefinition>
  25. <ColumnDefinition Width="700"></ColumnDefinition>
  26. <ColumnDefinition Width="500"></ColumnDefinition>
  27. <ColumnDefinition/>
  28. </Grid.ColumnDefinitions>
  29. <UserControls:RecipeFileLoadControl Grid.Row="1" Grid.Column="1" Title="Hvd Recipe" RecipeNodes="{Binding RecipeNodes}" OperationCommand="{Binding OperationCommand}"
  30. RecipeLocation="{Binding CurrentNode.RecipeLocation}" EditEnable="{Binding EditEnable}" CreateEnable="{Binding CreateEnable}" RecipeFileName="{Binding CurrentNode.FileName}"
  31. CreateCommand="{Binding CreateCommand}" EditCommand="{Binding EditCommand}"/>
  32. <Grid Grid.Row="1" Grid.Column="2">
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="70"></RowDefinition>
  35. <RowDefinition Height="70"></RowDefinition>
  36. <RowDefinition/>
  37. </Grid.RowDefinitions>
  38. <GroupBox Header="PPID" Grid.Row="0">
  39. <TextBlock Text="{Binding Recipe.Ppid}" FontSize="20" VerticalAlignment="Center" TextAlignment="Center">
  40. </TextBlock>
  41. </GroupBox>
  42. <GroupBox Header="Description" Grid.Row="1">
  43. <TextBlock Text="{Binding Recipe.Description}" FontSize="18" VerticalAlignment="Center" TextAlignment="Center">
  44. </TextBlock>
  45. </GroupBox>
  46. <Grid Grid.Row="2">
  47. <Grid>
  48. <Grid.RowDefinitions>
  49. <RowDefinition></RowDefinition>
  50. <RowDefinition Height="70"></RowDefinition>
  51. </Grid.RowDefinitions>
  52. <Grid Grid.Row="0">
  53. <Grid.ColumnDefinitions>
  54. <ColumnDefinition Width="300"></ColumnDefinition>
  55. <ColumnDefinition/>
  56. </Grid.ColumnDefinitions>
  57. <Grid Margin="0,20,0,0" VerticalAlignment="Top">
  58. <Grid.RowDefinitions>
  59. <RowDefinition Height="75"/>
  60. <RowDefinition/>
  61. </Grid.RowDefinitions>
  62. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Dry Time" Unit="sec" MinValue="0" MaxValue="120" IntValue="{Binding Recipe.DryTime,Mode=TwoWay}"
  63. ValidResult="{Binding PropertyValidResultDic[DryTime],Mode=TwoWay}" Width="290"/>
  64. </Grid>
  65. </Grid>
  66. </Grid>
  67. </Grid>
  68. </Grid>
  69. <Grid Grid.Row="1" Grid.Column="3">
  70. <Grid.RowDefinitions>
  71. <RowDefinition Height="70"></RowDefinition>
  72. <RowDefinition Height="70"></RowDefinition>
  73. <RowDefinition/>
  74. <RowDefinition Height="70"></RowDefinition>
  75. </Grid.RowDefinitions>
  76. <Grid Grid.Row="0" IsEnabled="{Binding Enable}">
  77. <Grid.ColumnDefinitions>
  78. <ColumnDefinition/>
  79. <ColumnDefinition/>
  80. <ColumnDefinition/>
  81. </Grid.ColumnDefinitions>
  82. <Button Grid.Column="0" Style="{StaticResource SysBtnStyle}" Content="Save" Height="35" Width="100" Command="{Binding SaveRecipeCommand}"></Button>
  83. <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="SaveAs" Height="35" Width="100" Command="{Binding SaveAsRecipeCommand}"></Button>
  84. </Grid>
  85. </Grid>
  86. </Grid>
  87. </UserControl>