DataPage.xaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.DataPage"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:prism="http://prismlibrary.com/"
  7. xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  8. d:DataContext="{d:DesignInstance Type=viewmodels:DataPageViewModel}"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. mc:Ignorable="d">
  13. <Grid>
  14. <GroupBox Header="结果显示">
  15. <DataGrid AutoGenerateColumns="False"
  16. IsReadOnly="True"
  17. ItemsSource="{Binding LogModels}">
  18. <DataGrid.Columns>
  19. <DataGridTextColumn Width="*"
  20. Binding="{Binding CreateTime}"
  21. Header="测试时间" />
  22. <DataGridTextColumn Width="*"
  23. Binding="{Binding ProCode}"
  24. Header="产品码" />
  25. <DataGridTextColumn Width="*"
  26. Binding="{Binding OperatorCode}"
  27. Header="员工码" />
  28. <DataGridTextColumn Width="*"
  29. Binding="{Binding SpendTime}"
  30. Header="用时" />
  31. </DataGrid.Columns>
  32. </DataGrid>
  33. </GroupBox>
  34. </Grid>
  35. </UserControl>