123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <UserControl x:Class="PLCTool.Views.BusinessManageView.ProjectTestView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PLCTool.Views.BusinessManageView"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:myControl="clr-namespace:PLCTool.Controls"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
-
- </UserControl.Resources>
- <Grid>
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding OnLoadCommand}"/>
- </b:EventTrigger>
- </b:Interaction.Triggers>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
-
-
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="项目代号:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
- <TextBox Height="28" Width="120" Text="{Binding ProjectNo}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="项目名称:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
- <TextBox Height="28" Width="120" Text="{Binding ProjectName}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Center">
- <TextBlock Text="负责人:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0" TextAlignment="Right" Width="80"/>
- <TextBox Height="28" Width="120" Text="{Binding ProjectLeader}"/>
- </StackPanel>
-
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="创建时间:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
- <hc:DateTimePicker ShowClearButton="True" Style="{StaticResource DateTimePickerExtend}" Height="25" Width="160" Text="{Binding StartTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="至:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
- <hc:DateTimePicker ShowClearButton="True" Style="{StaticResource DateTimePickerExtend}" Height="25" Width="160" Text="{Binding EndTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
- </StackPanel>
-
- </StackPanel>
- <Border Grid.Row="1" BorderBrush="#CBCBCB" BorderThickness="0,0,0,1" />
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" >
- <Button Content="查询" Width="80" Margin="5,0" Command="{Binding QueryCommand}" Style="{StaticResource NormalButtonStyle}" />
- <Button Content="重置" Width="80" Margin="15,0" Command="{Binding ResetCommand}" Style="{StaticResource NormalButtonStyle}" Background=" #7F7F7F" />
- </StackPanel>
-
- <ScrollViewer Grid.Row="2">
- <ItemsControl ItemsSource="{Binding ProjectePicList}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid Columns="4" Rows="{Binding RowsCount}" Margin="10" Cursor="Hand" />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </ScrollViewer>
-
-
- </Grid>
- </UserControl>
|