MainPage.xaml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.MainPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converter="clr-namespace:LogoForceTestApp.Modules.MainModule.Converters"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:hc="https://handyorg.github.io/handycontrol"
  7. xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:oxyplot="http://oxyplot.org/wpf"
  10. xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  11. d:DataContext="{d:DesignInstance Type=viewmodels:MainPageViewModel}"
  12. d:DesignHeight="450"
  13. d:DesignWidth="800"
  14. mc:Ignorable="d">
  15. <UserControl.Resources>
  16. <ResourceDictionary>
  17. <ResourceDictionary.MergedDictionaries>
  18. <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary.xaml" />
  19. <ResourceDictionary>
  20. <converter:BooleanToBrush x:Key="BoolBrush" />
  21. </ResourceDictionary>
  22. </ResourceDictionary.MergedDictionaries>
  23. <Style TargetType="DataGrid">
  24. <Setter Property="Height"
  25. Value="auto" />
  26. <Setter Property="Width"
  27. Value="auto" />
  28. <Setter Property="CanUserAddRows"
  29. Value="False" />
  30. <Setter Property="FontSize"
  31. Value="16" />
  32. </Style>
  33. </ResourceDictionary>
  34. </UserControl.Resources>
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="auto"/>
  38. <RowDefinition />
  39. <RowDefinition Height="300"/>
  40. </Grid.RowDefinitions>
  41. <Border BorderBrush="#6A5ACD"
  42. BorderThickness="4">
  43. <StackPanel Orientation="Horizontal">
  44. <TextBlock Text="当前账号:"
  45. VerticalAlignment="Center"
  46. HorizontalAlignment="Center"
  47. Foreground="Black"
  48. FontSize="22"
  49. Margin="5" />
  50. <TextBlock Text="{Binding NowID}"
  51. VerticalAlignment="Center"
  52. HorizontalAlignment="Center"
  53. Foreground="Blue"
  54. FontSize="22"
  55. Margin="5" />
  56. </StackPanel>
  57. </Border>
  58. <GroupBox Grid.Row="1"
  59. Header="作业指导书"
  60. FontSize="22"
  61. FontWeight="Bold">
  62. <Border BorderBrush="#6A5ACD"
  63. BorderThickness="4">
  64. <ListBox ScrollViewer.IsDeferredScrollingEnabled="False"
  65. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  66. ItemsSource="{Binding ImageList, Mode=OneWay,IsAsync=True}">
  67. <ListBox.ItemTemplate>
  68. <DataTemplate>
  69. <Image Source="{Binding PicturePath}" />
  70. </DataTemplate>
  71. </ListBox.ItemTemplate>
  72. <ListBox.ItemsPanel>
  73. <ItemsPanelTemplate>
  74. <WrapPanel Orientation="Horizontal" />
  75. </ItemsPanelTemplate>
  76. </ListBox.ItemsPanel>
  77. </ListBox>
  78. </Border>
  79. </GroupBox>
  80. <Grid Grid.Row="2">
  81. <Grid.ColumnDefinitions>
  82. <ColumnDefinition />
  83. <ColumnDefinition />
  84. <ColumnDefinition />
  85. </Grid.ColumnDefinitions>
  86. <GroupBox Grid.Column="0"
  87. Header="员工信息">
  88. <StackPanel Orientation="Vertical"
  89. VerticalAlignment="Center"
  90. HorizontalAlignment="Center">
  91. <TextBox Text="{Binding Person,UpdateSourceTrigger=PropertyChanged}"
  92. Height="30"
  93. Width="280" />
  94. <Button Content="上传"
  95. VerticalAlignment="Center"
  96. Margin="10"
  97. Width="80"
  98. Height="30"
  99. FontSize="18"
  100. Style="{StaticResource BtnStyle}"
  101. Command="{Binding UpCommand}" />
  102. </StackPanel>
  103. </GroupBox>
  104. <GroupBox Grid.Column="1"
  105. Header="日志">
  106. <ListBox x:Name="ListBoxMessage" />
  107. </GroupBox>
  108. <GroupBox Grid.Column="2"
  109. Header="物料">
  110. <StackPanel Orientation="Vertical"
  111. VerticalAlignment="Center"
  112. HorizontalAlignment="Center">
  113. <hc:TextBox Width="280"
  114. Height="16"
  115. Margin="2"
  116. Name="TextBox1"
  117. Text="{Binding Wu1,UpdateSourceTrigger=PropertyChanged}">
  118. <hc:TextBox.InputBindings>
  119. <KeyBinding Command="{Binding WuCommand}"
  120. Key="Enter"/>
  121. </hc:TextBox.InputBindings>
  122. </hc:TextBox>
  123. <!--<hc:TextBox Width="280"
  124. Height="16"
  125. Margin="2"
  126. Name="TextBox2"
  127. Text="{Binding Wu2,UpdateSourceTrigger=PropertyChanged}"
  128. KeyDown="TextBox2_KeyDown" />
  129. <hc:TextBox Width="280"
  130. Height="16"
  131. Margin="2"
  132. Name="TextBox3"
  133. Text="{Binding Wu3,UpdateSourceTrigger=PropertyChanged}"
  134. KeyDown="TextBox3_KeyDown" />
  135. <hc:TextBox Width="280"
  136. Height="16"
  137. Margin="2"
  138. Name="TextBox4"
  139. Text="{Binding Wu4,UpdateSourceTrigger=PropertyChanged}"
  140. KeyDown="TextBox4_KeyDown" />
  141. <hc:TextBox Width="280"
  142. Height="16"
  143. Margin="2"
  144. Name="TextBox5"
  145. Text="{Binding Wu5,UpdateSourceTrigger=PropertyChanged}"
  146. KeyDown="TextBox5_KeyDown" />
  147. <hc:TextBox Width="280"
  148. Height="16"
  149. Margin="2"
  150. Name="TextBox6"
  151. Text="{Binding Wu6,UpdateSourceTrigger=PropertyChanged}"
  152. KeyDown="TextBox6_KeyDown" />
  153. <hc:TextBox Width="280"
  154. Height="16"
  155. Margin="2"
  156. Name="TextBox7"
  157. Text="{Binding Wu7,UpdateSourceTrigger=PropertyChanged}"
  158. KeyDown="TextBox7_KeyDown" />
  159. <hc:TextBox Width="280"
  160. Height="16"
  161. Margin="2"
  162. Name="TextBox8"
  163. Text="{Binding Wu8,UpdateSourceTrigger=PropertyChanged}"
  164. KeyDown="TextBox8_KeyDown" />
  165. <hc:TextBox Width="280"
  166. Height="16"
  167. Margin="2"
  168. Name="TextBox9"
  169. Text="{Binding Wu9,UpdateSourceTrigger=PropertyChanged}"
  170. KeyDown="TextBox9_KeyDown" />
  171. <hc:TextBox Width="280"
  172. Height="16"
  173. Margin="2"
  174. Name="TextBox10"
  175. Text="{Binding Wu10,UpdateSourceTrigger=PropertyChanged}" />
  176. <Button Content="确认"
  177. VerticalAlignment="Center"
  178. Margin="10"
  179. Width="80"
  180. Height="30"
  181. FontSize="18"
  182. Style="{StaticResource BtnStyle}"
  183. Command="{Binding NotarizeCommand}" />-->
  184. </StackPanel>
  185. </GroupBox>
  186. </Grid>
  187. </Grid>
  188. </UserControl>