1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <UserControl x:Class="PLCTool.Views.BusinessManageView.DeviceTestCardView"
- 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"
-
- Height="240" Width="280">
- <Grid>
-
- <Grid.InputBindings>
- <MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DoubleClickCommand}" CommandParameter="{Binding ElementName=txtName}">
- </MouseBinding>
- </Grid.InputBindings>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.6*"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Border BorderBrush="#CBCBCB" Grid.Row="1" BorderThickness="1"/>
- <Grid Grid.Row="0" Background="#409EFF" >
- <TextBlock x:Name="txtName" Text="{Binding ProjectName}" Foreground="White" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
-
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="3*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="FontSize" Value="20"/>
- <Setter Property="Width" Value="auto"/>
- <Setter Property="HorizontalAlignment" Value="Right"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="Margin" Value="10 0 0 0"/>
- </Style>
- </Grid.Resources>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" Grid.Row="0" Text="项目代号:" TextAlignment="Right"/>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" Grid.Row="1" Text="负责人:" TextAlignment="Right"/>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" Grid.Row="2" Text="设备数量:" TextAlignment="Right"/>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" Grid.Row="3" Text="待测设备数量:" TextAlignment="Right"/>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" x:Name="txtProjectNo" Grid.Row="0" Grid.Column="1" />
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" x:Name="txtPProjectLeader" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left"/>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" x:Name="txtDeviceCount" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left"/>
- <TextBlock Margin="0,10,0,0" Style="{StaticResource NormalTextBlockStyle}" x:Name="txtNoTestCount" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left"/>
- </Grid>
-
- </Grid>
- </UserControl>
|