|
|
@@ -18,6 +18,30 @@ |
|
|
|
<ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" /> |
|
|
|
<ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" /> |
|
|
|
</ResourceDictionary.MergedDictionaries> |
|
|
|
<Style TargetType="ListBoxItem" x:Key="newFoodList" > |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}"> |
|
|
|
<Border BorderBrush="Black" BorderThickness="0" Background="Transparent" Margin="5"> |
|
|
|
<StackPanel Orientation="Vertical"> |
|
|
|
<TextBlock Text="步骤:"/> |
|
|
|
<TextBox Text="{Binding FryTime}" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
|
|
|
<ComboBox Width="120" ItemsSource="{Binding DataContext.strPotActions , RelativeSource={RelativeSource AncestorType=Window,Mode=FindAncestor}}" |
|
|
|
SelectedValue="{Binding Actions}" Margin="10,0"/> |
|
|
|
<TextBlock Text="时间"/> |
|
|
|
<TextBox Text="{Binding During}" Margin="10,0"/> |
|
|
|
|
|
|
|
<TextBox Text="{Binding SeasoningLists[0].Loc}" Margin="10,0"/> |
|
|
|
<TextBox Text="{Binding SeasoningLists[0].Qty}" Margin="10,0"/> |
|
|
|
<Button Content="删除" Margin="10,0" HorizontalAlignment="Center"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
<Style TargetType="ListBoxItem" > |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
@@ -96,6 +120,7 @@ |
|
|
|
</Grid> |
|
|
|
<ListBox x:Name="listview1" Grid.Row="3" BorderBrush="Black" BorderThickness="0" HorizontalAlignment="Center" AllowDrop="True" |
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding PotActionStep}" Margin=" 10" Background="Transparent" |
|
|
|
ItemContainerStyle="{DynamicResource newFoodList}" |
|
|
|
> |
|
|
|
|
|
|
|
</ListBox> |
|
|
|