|
@@ -1,4 +1,5 @@
|
|
|
<UserControl x:Class="TeamAAS_VP.Controls.ParameterEdit"
|
|
<UserControl x:Class="TeamAAS_VP.Controls.ParameterEdit"
|
|
|
|
|
+ x:Name="root"
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
@@ -27,9 +28,9 @@
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<Button Content="{lex:Loc 增加}"
|
|
<Button Content="{lex:Loc 增加}"
|
|
|
Margin="10"
|
|
Margin="10"
|
|
|
- Command="{Binding AddCommand}" />
|
|
|
|
|
|
|
+ Command="{Binding AddCommand, ElementName=root}" />
|
|
|
<Button Content="{lex:Loc 移除}"
|
|
<Button Content="{lex:Loc 移除}"
|
|
|
- Command="{Binding RemoveCommand}"
|
|
|
|
|
|
|
+ Command="{Binding RemoveCommand, ElementName=root}"
|
|
|
CommandParameter="{Binding ElementName=dg_params,Path=SelectedItem}"/>
|
|
CommandParameter="{Binding ElementName=dg_params,Path=SelectedItem}"/>
|
|
|
<TextBlock Text="{lex:Loc 总数,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
|
|
<TextBlock Text="{lex:Loc 总数,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
@@ -37,14 +38,14 @@
|
|
|
<TextBlock Text="{Binding ElementName=dg_params,Path=Items.Count}" VerticalAlignment="Center" Margin="5,0" />
|
|
<TextBlock Text="{Binding ElementName=dg_params,Path=Items.Count}" VerticalAlignment="Center" Margin="5,0" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<DataGrid x:Name="dg_params" Grid.Row="1" AutoGenerateColumns="False"
|
|
<DataGrid x:Name="dg_params" Grid.Row="1" AutoGenerateColumns="False"
|
|
|
CanUserAddRows="False"
|
|
CanUserAddRows="False"
|
|
|
ColumnWidth="*"
|
|
ColumnWidth="*"
|
|
|
SelectionUnit="FullRow"
|
|
SelectionUnit="FullRow"
|
|
|
SelectionMode="Single"
|
|
SelectionMode="Single"
|
|
|
- SelectedItem="{Binding SelectParam}"
|
|
|
|
|
- ItemsSource="{Binding GlobalParamListCollection}"
|
|
|
|
|
|
|
+ SelectedItem="{Binding SelectParam, ElementName=root}"
|
|
|
|
|
+ ItemsSource="{Binding GlobalParamListCollection, ElementName=root}"
|
|
|
HeadersVisibility="All">
|
|
HeadersVisibility="All">
|
|
|
<DataGrid.Columns>
|
|
<DataGrid.Columns>
|
|
|
<DataGridTextColumn Header="{lex:Loc 编号}"
|
|
<DataGridTextColumn Header="{lex:Loc 编号}"
|
|
@@ -72,6 +73,6 @@
|
|
|
Binding="{Binding Param5, Mode=TwoWay}" />
|
|
Binding="{Binding Param5, Mode=TwoWay}" />
|
|
|
</DataGrid.Columns>
|
|
</DataGrid.Columns>
|
|
|
</DataGrid>
|
|
</DataGrid>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</Grid>
|
|
</Grid>
|
|
|
</UserControl>
|
|
</UserControl>
|