MainWindow.xaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <Window
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:local="clr-namespace:ST_CUBE_MES"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. Title="ST-CUBE_MES"
  8. Width="800"
  9. Height="450"
  10. FontSize="12"
  11. Background="#FF646464"
  12. Foreground="White"
  13. WindowStartupLocation="CenterScreen"
  14. mc:Ignorable="d"
  15. x:Class="ST_CUBE_MES.MainWindow">
  16. <Grid Margin="10">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="*" />
  21. </Grid.RowDefinitions>
  22. <GroupBox Grid.Row="0" Header="User Setting">
  23. <Grid Margin="5">
  24. <Grid.RowDefinitions>
  25. <RowDefinition />
  26. <RowDefinition Height="5" />
  27. <RowDefinition />
  28. <RowDefinition Height="5" />
  29. <RowDefinition />
  30. </Grid.RowDefinitions>
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="70" />
  33. <ColumnDefinition />
  34. </Grid.ColumnDefinitions>
  35. <TextBlock
  36. Grid.Row="2"
  37. VerticalAlignment="Center"
  38. Text="SN" />
  39. <TextBlock
  40. Grid.Row="4"
  41. VerticalAlignment="Center"
  42. Text="Bin File" />
  43. <TextBox
  44. x:Name="uxSN"
  45. Grid.Row="2"
  46. Grid.Column="1"
  47. Height="30"
  48. VerticalContentAlignment="Center" />
  49. <Grid Grid.Row="4" Grid.Column="1">
  50. <Grid.ColumnDefinitions>
  51. <ColumnDefinition Width="29*" />
  52. <ColumnDefinition Width="287*" />
  53. <ColumnDefinition Width="50" />
  54. </Grid.ColumnDefinitions>
  55. <TextBox
  56. x:Name="uxBinFilePath"
  57. Grid.ColumnSpan="2"
  58. Height="30"
  59. Margin="0,5"
  60. VerticalContentAlignment="Center" />
  61. <Button
  62. x:Name="uxBinFileBtn"
  63. Grid.Column="2"
  64. Width="40"
  65. Height="40"
  66. Margin="5,0"
  67. Click="uxBinFileBtn_Click"
  68. Content="." />
  69. </Grid>
  70. </Grid>
  71. </GroupBox>
  72. <Grid
  73. Grid.Row="1"
  74. Height="30"
  75. Margin="5">
  76. <Grid.ColumnDefinitions>
  77. <ColumnDefinition />
  78. <ColumnDefinition Width="30" />
  79. <ColumnDefinition Width="100" />
  80. </Grid.ColumnDefinitions>
  81. <ProgressBar
  82. x:Name="uxProgressBar"
  83. Height="10"
  84. VerticalAlignment="Center" />
  85. <TextBlock
  86. Grid.Column="1"
  87. HorizontalAlignment="Center"
  88. VerticalAlignment="Center"
  89. Text="0%" />
  90. <Button
  91. x:Name="uxRunBtn"
  92. Grid.Column="2"
  93. Background="LightSkyBlue"
  94. Click="uxRunBtn_Click"
  95. Content="Run" />
  96. </Grid>
  97. <GroupBox Grid.Row="2" Header="Terminal">
  98. <RichTextBox x:Name="uxTerminal" Background="Black" />
  99. </GroupBox>
  100. </Grid>
  101. </Window>