|
@@ -5,27 +5,58 @@
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="clr-namespace:SAGA.MBI.Test"
|
|
|
mc:Ignorable="d" Title="配置参数" WindowStartupLocation="CenterScreen"
|
|
|
- Height="300" Width="400">
|
|
|
+ Height="300" Width="400">
|
|
|
<Window.Resources>
|
|
|
<Style TargetType="TextBox">
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"></Setter>
|
|
|
<Setter Property="Height" Value="24"></Setter>
|
|
|
</Style>
|
|
|
+ <Style TargetType="DataGridColumnHeader">
|
|
|
+ <Setter Property="Height" Value="25"></Setter>
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="dgtextblock">
|
|
|
+ <Setter Property="TextBlock.Height" Value="25"></Setter>
|
|
|
+ <Setter Property="TextBlock.HorizontalAlignment" Value="Center"></Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="dgtextbox">
|
|
|
+ <Setter Property="TextBox.Height" Value="25"></Setter>
|
|
|
+ <Setter Property="TextBox.HorizontalContentAlignment" Value="Center"></Setter>
|
|
|
+ </Style>
|
|
|
</Window.Resources>
|
|
|
<Grid Margin="5">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="20"></RowDefinition>
|
|
|
+ <RowDefinition Height="50"></RowDefinition>
|
|
|
<RowDefinition></RowDefinition>
|
|
|
<RowDefinition Height="50"></RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <WrapPanel>
|
|
|
+ <Label Content="请输入设备类别(族的四位编码,多个请用分号分割,所有请输入All):"></Label>
|
|
|
+ <TextBox Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Grid }, Path=ActualWidth}" Text="{Binding Path=CopyRange,UpdateSourceTrigger=PropertyChanged}" HorizontalContentAlignment="Left" ></TextBox>
|
|
|
+ </WrapPanel>
|
|
|
+ </Grid>
|
|
|
<Grid Grid.Row="1">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition></ColumnDefinition>
|
|
|
<ColumnDefinition></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="30"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="20"></ColumnDefinition>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <StackPanel Grid.Column="0">
|
|
|
+ <DataGrid Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding Path=ParameterDic,UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="False" CanUserAddRows="False"
|
|
|
+ SelectedItem="{Binding Path=SelectItem}">
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="源参数名称(旧)" Width="*" Binding="{Binding Path=Name,UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ ElementStyle="{StaticResource dgtextblock}"
|
|
|
+ EditingElementStyle="{StaticResource dgtextbox}"></DataGridTextColumn>
|
|
|
+ <DataGridTextColumn Header="目标参数名称(新)" Width="*" Binding="{Binding Path=Value,UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ ElementStyle="{StaticResource dgtextblock}"
|
|
|
+ EditingElementStyle="{StaticResource dgtextbox}"></DataGridTextColumn>
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+
|
|
|
+ <!--<StackPanel Grid.Column="0">
|
|
|
<Label Height="25" Content="源参数名称(旧)" HorizontalContentAlignment="Center" Background="LightGray"></Label>
|
|
|
<TextBox Name="txt00" Text="车位编号"></TextBox>
|
|
|
<TextBox Name="txt10"></TextBox>
|
|
@@ -34,7 +65,24 @@
|
|
|
<Label Height="25" Content="目标参数名称(新)" HorizontalContentAlignment="Center" Background="LightGray"></Label>
|
|
|
<TextBox Name="txt01" Text="设备本地编码"></TextBox>
|
|
|
<TextBox Name="txt11"></TextBox>
|
|
|
- </StackPanel>
|
|
|
+ </StackPanel>-->
|
|
|
+ <Grid Grid.Column="2">
|
|
|
+ <StackPanel VerticalAlignment="Center">
|
|
|
+ <Button Margin="0,5"
|
|
|
+ Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Grid},Path=ActualWidth}"
|
|
|
+ Click="BtnAdd_OnClick">
|
|
|
+ <Image Source="../Image/add.png"></Image>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button Margin="0,5"
|
|
|
+ Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Grid},Path=ActualWidth}"
|
|
|
+ Click="BtnDel_OnClick">
|
|
|
+ <Image Source="../Image/delete.png">
|
|
|
+ </Image>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
<Button Height="24" Width="100" Content="执行" Margin="10,0" IsDefault="True" Click="ButtonBase_OnClick"></Button>
|
|
@@ -42,3 +90,4 @@
|
|
|
</WrapPanel>
|
|
|
</Grid>
|
|
|
</Window>
|
|
|
+
|