Skip to content

Commit

Permalink
#49 - Align "Other versions" button on the Browser tab the same as on…
Browse files Browse the repository at this point in the history
… the Updates tab.
  • Loading branch information
maraf committed Dec 21, 2018
1 parent 2fde132 commit cc6ceba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PackageManager.UI/Views/Browser.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@

<Grid Margin="0,8">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Content="Install" Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Border}, Path=DataContext.Install}">
<Button Content="Install" Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Border}, Path=DataContext.Install}" Margin="0,0,8,0">
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource FirstNotNullMultiConverter}">
<Binding Path="SelectedItem.Model" ElementName="cbxVersions" />
<Binding Path="Model" />
</MultiBinding>
</Button.CommandParameter>
</Button>
</StackPanel>

<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Other versions.." Command="{Binding LoadVersions}" Visibility="{Binding AreVersionsLoaded, Converter={StaticResource FalseToVisibleConverter}}" MinWidth="100" MaxWidth="100" />
<ComboBox x:Name="cbxVersions" ItemsSource="{Binding Versions}" SelectedItem="{Binding Mode=OneWay}" DisplayMemberPath="Version" ItemStringFormat="{}v{0}"
SelectionChanged="cbxVersions_SelectionChanged"
Expand Down

0 comments on commit cc6ceba

Please sign in to comment.