调整步骤导航按钮靠右并使步骤名自动换行
This commit is contained in:
parent
1db64b676d
commit
e82667f818
@ -47,6 +47,9 @@
|
||||
<Setter Property="Padding" Value="8,6" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
<Style Selector="ListBox.StepNavigation ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
<Style Selector="TextBlock.state2">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</Style>
|
||||
@ -56,14 +59,14 @@
|
||||
</UserControl.Styles>
|
||||
<UserControl.Resources>
|
||||
<DataTemplate x:Key="StepRow" DataType="{x:Type ed:StepNode}">
|
||||
<Grid RowDefinitions="Auto,Auto">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
|
||||
<TextBlock TextWrapping="Wrap">
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,0,6,0" VerticalAlignment="Center">
|
||||
<Run Text="{Binding Id}" Foreground="{StaticResource Accent}" />
|
||||
<Run Text=" " />
|
||||
<Run Text="{Binding Name}" />
|
||||
</TextBlock>
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||||
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||||
<Button Content="↑" Margin="2,0,0,0" Command="{Binding DataContext.Recipe.MoveStepUpCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" CommandParameter="{Binding}" Classes="Mini" />
|
||||
<Button Content="↓" Margin="2,0,0,0" Command="{Binding DataContext.Recipe.MoveStepDownCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" CommandParameter="{Binding}" Classes="Mini" />
|
||||
<Button Content="×" Margin="2,0,0,0" Foreground="{StaticResource Ng}" Command="{Binding DataContext.Recipe.RemoveStepCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" CommandParameter="{Binding}" Classes="Mini" />
|
||||
@ -121,7 +124,7 @@
|
||||
<TextBlock Text="{Binding StepTransferStatus}" TextWrapping="Wrap" Foreground="{StaticResource FgDim}" FontSize="12" />
|
||||
</StackPanel>
|
||||
<Button DockPanel.Dock="Bottom" Content="加步骤" Margin="0,8,0,0" Padding="0,6" Command="{Binding Recipe.AddStepCommand}" />
|
||||
<ListBox ItemTemplate="{StaticResource StepRow}" ItemsSource="{Binding Recipe.Steps}" SelectedItem="{Binding Recipe.SelectedStep}" Classes="Pick" />
|
||||
<ListBox ItemTemplate="{StaticResource StepRow}" ItemsSource="{Binding Recipe.Steps}" SelectedItem="{Binding Recipe.SelectedStep}" Classes="Pick StepNavigation" />
|
||||
</DockPanel>
|
||||
<ScrollViewer x:Name="StepParameters" Classes="StepParameters" Grid.Column="1" Margin="6,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" DataContext="{Binding Recipe.SelectedStep}">
|
||||
<StackPanel>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user