Put up and down button side by side

This commit is contained in:
Adrien Allard committed 2019-07-31 08:43:06 +02:00
1 parent e773ea49d0
commit d9e03e9028
1 file changed
+9 -9
@@ -305,13 +305,19 @@
</TreeView>
<DockPanel Grid.Row="1" Margin="0,5,0,0" HorizontalAlignment="Center">
<Button Width="25" Margin="2,0"
<Button Width="25" Margin="0,0,2,0"
ToolTip="{x:Static project:Resources.MoveUpSelectedPreset}"
Command="{Binding MovePresetUpCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/UpIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="0,0,2,0"
<Button Width="25" Margin="2,0"
ToolTip="{x:Static project:Resources.MoveDownSelectedPreset}"
Command="{Binding MovePresetDownCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/DownIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="2,0"
ToolTip="{x:Static project:Resources.CreateANewFolder}"
Command="{Binding CreateFolderCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/FolderIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
@@ -323,18 +329,12 @@
<Image Source="{Binding Source=/FileConverter;component/Resources/PresetIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="2,0"
<Button Width="25" Margin="2,0,0,0"
ToolTip="{x:Static project:Resources.RemoveSelectedPreset}"
Command="{Binding RemoveSelectedPresetCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/DeleteIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="2,0,0,0"
ToolTip="{x:Static project:Resources.MoveDownSelectedPreset}"
Command="{Binding MovePresetDownCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/DownIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<TextBlock Margin="5,5,0,0">
<Hyperlink CommandParameter="https://github.com/Tichau/FileConverter/wiki/How-to-create-a-new-custom-preset%3F" Command="{Binding OpenUrlCommand, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
</TextBlock>