ProjectTestView.xaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <UserControl x:Class="PLCTool.Views.BusinessManageView.ProjectTestView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PLCTool.Views.BusinessManageView"
  7. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:hc="https://handyorg.github.io/handycontrol"
  9. xmlns:myControl="clr-namespace:PLCTool.Controls"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <UserControl.Resources>
  13. </UserControl.Resources>
  14. <Grid>
  15. <b:Interaction.Triggers>
  16. <b:EventTrigger EventName="Loaded">
  17. <b:InvokeCommandAction Command="{Binding OnLoadCommand}"/>
  18. </b:EventTrigger>
  19. </b:Interaction.Triggers>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="50"/>
  22. <RowDefinition Height="50"/>
  23. <RowDefinition/>
  24. </Grid.RowDefinitions>
  25. <StackPanel Grid.Row="0" Orientation="Horizontal">
  26. <StackPanel Orientation="Horizontal">
  27. <TextBlock Text="项目代号:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
  28. <TextBox Height="28" Width="120" Text="{Binding ProjectNo}" />
  29. </StackPanel>
  30. <StackPanel Orientation="Horizontal">
  31. <TextBlock Text="项目名称:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
  32. <TextBox Height="28" Width="120" Text="{Binding ProjectName}"/>
  33. </StackPanel>
  34. <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Center">
  35. <TextBlock Text="负责人:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0" TextAlignment="Right" Width="80"/>
  36. <TextBox Height="28" Width="120" Text="{Binding ProjectLeader}"/>
  37. </StackPanel>
  38. <StackPanel Orientation="Horizontal">
  39. <TextBlock Text="创建时间:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
  40. <hc:DateTimePicker ShowClearButton="True" Style="{StaticResource DateTimePickerExtend}" Height="25" Width="160" Text="{Binding StartTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  41. </StackPanel>
  42. <StackPanel Orientation="Horizontal">
  43. <TextBlock Text="至:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
  44. <hc:DateTimePicker ShowClearButton="True" Style="{StaticResource DateTimePickerExtend}" Height="25" Width="160" Text="{Binding EndTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  45. </StackPanel>
  46. </StackPanel>
  47. <Border Grid.Row="1" BorderBrush="#CBCBCB" BorderThickness="0,0,0,1" />
  48. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" >
  49. <Button Content="查询" Width="80" Margin="5,0" Command="{Binding QueryCommand}" Style="{StaticResource NormalButtonStyle}" />
  50. <Button Content="重置" Width="80" Margin="15,0" Command="{Binding ResetCommand}" Style="{StaticResource NormalButtonStyle}" Background=" #7F7F7F" />
  51. </StackPanel>
  52. <ScrollViewer Grid.Row="2">
  53. <ItemsControl ItemsSource="{Binding ProjectePicList}">
  54. <ItemsControl.ItemsPanel>
  55. <ItemsPanelTemplate>
  56. <UniformGrid Columns="4" Rows="{Binding RowsCount}" Margin="10" Cursor="Hand" />
  57. </ItemsPanelTemplate>
  58. </ItemsControl.ItemsPanel>
  59. </ItemsControl>
  60. </ScrollViewer>
  61. </Grid>
  62. </UserControl>