|
79 | 79 |
|
80 | 80 | <Rectangle Grid.Row="1" Height="1" Fill="{DynamicResource Brush.Border2}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/> |
81 | 81 |
|
82 | | - <StackPanel Grid.Row="2" Orientation="Horizontal" Background="{DynamicResource Brush.ToolBar}"> |
83 | | - <Button Classes="icon_button" Command="{Binding Add}"> |
| 82 | + <Grid Grid.Row="2" ColumnDefinitions="Auto,Auto,*,Auto,Auto" Background="{DynamicResource Brush.ToolBar}"> |
| 83 | + <Button Grid.Column="0" |
| 84 | + Classes="icon_button" |
| 85 | + Width="28" Height="28" |
| 86 | + Command="{Binding Add}"> |
84 | 87 | <Path Width="14" Height="14" Data="{StaticResource Icons.Plus}"/> |
85 | 88 | </Button> |
86 | | - |
87 | | - <Rectangle Width="1" Fill="{DynamicResource Brush.Border2}" HorizontalAlignment="Left" VerticalAlignment="Stretch"/> |
88 | | - |
89 | | - <Button Classes="icon_button" Command="{Binding Delete}" IsEnabled="{Binding CanDeleteSelected}"> |
| 89 | + <Button Grid.Column="1" |
| 90 | + Classes="icon_button" |
| 91 | + Width="28" Height="28" |
| 92 | + Command="{Binding Delete}" |
| 93 | + IsEnabled="{Binding CanDeleteSelected}"> |
90 | 94 | <Path Width="14" Height="14" Data="{StaticResource Icons.Window.Minimize}"/> |
91 | 95 | </Button> |
92 | | - |
93 | | - <Rectangle Width="1" Fill="{DynamicResource Brush.Border2}" HorizontalAlignment="Left" VerticalAlignment="Stretch"/> |
94 | | - </StackPanel> |
| 96 | + <Button Grid.Column="3" |
| 97 | + Classes="icon_button" |
| 98 | + Width="28" Height="28" |
| 99 | + Command="{Binding MoveSelectedUp}" |
| 100 | + IsVisible="{Binding Selected, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 101 | + <Path Width="14" Height="14" |
| 102 | + Margin="0,6,0,0" |
| 103 | + Data="{StaticResource Icons.Up}"/> |
| 104 | + </Button> |
| 105 | + <Button Grid.Column="4" |
| 106 | + Classes="icon_button" |
| 107 | + Width="28" Height="28" |
| 108 | + Command="{Binding MoveSelectedDown}" |
| 109 | + IsVisible="{Binding Selected, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 110 | + <Path Width="14" Height="14" |
| 111 | + Margin="0,6,0,0" |
| 112 | + Data="{StaticResource Icons.Down}"/> |
| 113 | + </Button> |
| 114 | + </Grid> |
95 | 115 | </Grid> |
96 | 116 | </Border> |
97 | 117 |
|
|
0 commit comments