|
417 | 417 |
|
418 | 418 | <Rectangle Grid.Row="1" Height="1" Fill="{DynamicResource Brush.Border2}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
|
419 | 419 |
|
420 |
| - <StackPanel Grid.Row="2" Orientation="Horizontal" Background="{DynamicResource Brush.ToolBar}"> |
421 |
| - <Button Classes="icon_button" Command="{Binding AddNewCustomAction}"> |
| 420 | + <Grid Grid.Row="2" ColumnDefinitions="Auto,Auto,*,Auto,Auto" Background="{DynamicResource Brush.ToolBar}"> |
| 421 | + <Button Grid.Column="0" |
| 422 | + Classes="icon_button" |
| 423 | + Width="28" Height="28" |
| 424 | + Command="{Binding AddNewCustomAction}"> |
422 | 425 | <Path Width="14" Height="14" Data="{StaticResource Icons.Plus}"/>
|
423 | 426 | </Button>
|
424 |
| - |
425 |
| - <Rectangle Width="1" Fill="{DynamicResource Brush.Border2}" HorizontalAlignment="Left" VerticalAlignment="Stretch"/> |
426 |
| - |
427 |
| - <Button Classes="icon_button" Command="{Binding RemoveSelectedCustomAction}"> |
| 427 | + <Button Grid.Column="1" |
| 428 | + Classes="icon_button" |
| 429 | + Width="28" Height="28" |
| 430 | + Command="{Binding RemoveSelectedCustomAction}"> |
428 | 431 | <Path Width="14" Height="14" Data="{StaticResource Icons.Window.Minimize}"/>
|
429 | 432 | </Button>
|
430 |
| - |
431 |
| - <Rectangle Width="1" Fill="{DynamicResource Brush.Border2}" HorizontalAlignment="Left" VerticalAlignment="Stretch"/> |
432 |
| - </StackPanel> |
| 433 | + <Button Grid.Column="3" |
| 434 | + Classes="icon_button" |
| 435 | + Width="28" Height="28" |
| 436 | + Command="{Binding MoveSelectedCustomActionUp}" |
| 437 | + IsVisible="{Binding SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 438 | + <Path Width="14" Height="14" Margin="0,6,0,0" Data="{StaticResource Icons.Up}"/> |
| 439 | + </Button> |
| 440 | + <Button Grid.Column="4" |
| 441 | + Classes="icon_button" |
| 442 | + Width="28" Height="28" |
| 443 | + Command="{Binding MoveSelectedCustomActionDown}" |
| 444 | + IsVisible="{Binding SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 445 | + <Path Width="14" Height="14" Margin="0,6,0,0" Data="{StaticResource Icons.Down}"/> |
| 446 | + </Button> |
| 447 | + </Grid> |
433 | 448 | </Grid>
|
434 | 449 | </Border>
|
435 | 450 |
|
|
0 commit comments