|
|
@ -178,20 +178,20 @@
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Column="0"
|
|
|
|
FontSize="12"
|
|
|
|
FontSize="12"
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
Text="{DynamicResource FileName}" />
|
|
|
|
Text="{DynamicResource OptionalFields}" />
|
|
|
|
<ListBox
|
|
|
|
<ListBox
|
|
|
|
x:Name="nameSelectedFileName"
|
|
|
|
Name="nameOptionalFields"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
MinHeight="30"
|
|
|
|
|
|
|
|
Margin="0,0,0,20"
|
|
|
|
Margin="0,0,0,20"
|
|
|
|
ItemContainerStyle="{StaticResource TagItem2Style}"
|
|
|
|
ItemContainerStyle="{StaticResource TagItem2Style}"
|
|
|
|
ItemsSource="{Binding SelectedFileName, Mode=TwoWay}"
|
|
|
|
ItemsSource="{Binding OptionalFields, Mode=TwoWay}"
|
|
|
|
|
|
|
|
SelectedIndex="{Binding SelectedOptionalField}"
|
|
|
|
SelectionMode="Single"
|
|
|
|
SelectionMode="Single"
|
|
|
|
Style="{StaticResource Tag2Style}">
|
|
|
|
Style="{StaticResource Tag2Style}">
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
<i:InvokeCommandAction Command="{Binding SelectedFileNameCommand}" CommandParameter="{Binding ElementName=nameSelectedFileName, Path=SelectedItem}" />
|
|
|
|
<i:InvokeCommandAction Command="{Binding OptionalFieldsCommand}" CommandParameter="{Binding ElementName=nameOptionalFields, Path=SelectedItem}" />
|
|
|
|
</i:EventTrigger>
|
|
|
|
</i:EventTrigger>
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
</ListBox>
|
|
|
|
</ListBox>
|
|
|
@ -201,23 +201,49 @@
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Column="0"
|
|
|
|
FontSize="12"
|
|
|
|
FontSize="12"
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
Text="{DynamicResource OptionalFields}" />
|
|
|
|
Text="{DynamicResource FileName}" />
|
|
|
|
<ListBox
|
|
|
|
<ListBox
|
|
|
|
Name="nameOptionalFields"
|
|
|
|
x:Name="nameSelectedFileName"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
|
|
|
|
MinHeight="30"
|
|
|
|
ItemContainerStyle="{StaticResource TagItem2Style}"
|
|
|
|
ItemContainerStyle="{StaticResource TagItem2Style}"
|
|
|
|
ItemsSource="{Binding OptionalFields, Mode=TwoWay}"
|
|
|
|
ItemsSource="{Binding SelectedFileName, Mode=TwoWay}"
|
|
|
|
SelectedIndex="{Binding SelectedOptionalField}"
|
|
|
|
|
|
|
|
SelectionMode="Single"
|
|
|
|
SelectionMode="Single"
|
|
|
|
Style="{StaticResource Tag2Style}">
|
|
|
|
Style="{StaticResource Tag2Style}">
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
<i:InvokeCommandAction Command="{Binding OptionalFieldsCommand}" CommandParameter="{Binding ElementName=nameOptionalFields, Path=SelectedItem}" />
|
|
|
|
<i:InvokeCommandAction Command="{Binding SelectedFileNameCommand}" CommandParameter="{Binding ElementName=nameSelectedFileName, Path=SelectedItem}" />
|
|
|
|
</i:EventTrigger>
|
|
|
|
</i:EventTrigger>
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
</ListBox>
|
|
|
|
</ListBox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
FontSize="12"
|
|
|
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
|
|
|
Text="时间格式:" />
|
|
|
|
|
|
|
|
<ComboBox
|
|
|
|
|
|
|
|
Name="nameFileNamePartTimeFormat"
|
|
|
|
|
|
|
|
Width="120"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
|
|
|
ItemsSource="{Binding FileNamePartTimeFormatList}"
|
|
|
|
|
|
|
|
SelectedItem="{Binding SelectedFileNamePartTimeFormat}">
|
|
|
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding FileNamePartTimeFormatCommand}" CommandParameter="{Binding ElementName=nameFileNamePartTimeFormat, Path=SelectedItem}" />
|
|
|
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Column="1"
|
|
|
|