Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 5552176

Browse files
committed
Begin updated fork layout
1 parent c3d8441 commit 5552176

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/GitHub.VisualStudio/Views/Dialog/ForkRepositorySelectView.xaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,27 @@
4343

4444
<ListBox Name="accountsListBox"
4545
ItemsSource="{Binding Accounts}"
46-
Padding="8"
46+
BorderThickness="0"
4747
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
4848
SelectionChanged="accountsListBox_SelectionChanged">
4949
<ListBox.ItemsPanel>
5050
<ItemsPanelTemplate>
51-
<WrapPanel IsItemsHost="True"/>
51+
<UniformGrid Columns="3" Background="Red" HorizontalAlignment="Stretch" IsItemsHost="True"/>
5252
</ItemsPanelTemplate>
5353
</ListBox.ItemsPanel>
5454
<ListBox.ItemTemplate>
55-
<DataTemplate>
56-
<DockPanel Width="100">
57-
<TextBlock DockPanel.Dock="Bottom"
58-
Text="{Binding Login, StringFormat=@{0}}"
59-
TextAlignment="Center"
60-
TextTrimming="CharacterEllipsis"/>
61-
<Image Margin="0,4"
62-
Source="{Binding Avatar}"
63-
Width="32"/>
64-
</DockPanel>
55+
<DataTemplate>
56+
<Border Background="LightGreen" Padding="4">
57+
<DockPanel>
58+
<TextBlock DockPanel.Dock="Bottom"
59+
Text="{Binding Login, StringFormat=@{0}}"
60+
TextAlignment="Center"
61+
TextTrimming="CharacterEllipsis"/>
62+
<Image Margin="0,4"
63+
MaxWidth="100"
64+
Source="{Binding Avatar}" />
65+
</DockPanel>
66+
</Border>
6567
</DataTemplate>
6668
</ListBox.ItemTemplate>
6769
</ListBox>

0 commit comments

Comments
 (0)