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

Commit 78365b0

Browse files
committed
Actually implement the thing
1 parent 49ff791 commit 78365b0

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

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

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,49 +41,54 @@
4141
Style="{DynamicResource GitHubProgressBar}"
4242
Visibility="{Binding IsLoading, Converter={ui:BooleanToHiddenVisibilityConverter}}"/>
4343

44-
<!-- ItemsSource="{Binding Accounts}" -->
44+
<!--ItemsSource="{Binding Accounts}" -->
4545
<ListBox Name="accountsListBox"
4646
BorderThickness="0"
47+
ItemsSource="{Binding Accounts}"
48+
VerticalContentAlignment="Top"
4749
HorizontalContentAlignment="Stretch"
4850
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
4951
SelectionChanged="accountsListBox_SelectionChanged">
52+
<!--
5053
<ListBoxItem Margin="4">
5154
<Border Background="#fff2f2f2" CornerRadius="3">
52-
<DockPanel HorizontalAlignment="Stretch" Margin="4">
53-
<TextBlock DockPanel.Dock="Bottom"
54-
Text="@donokuda"
55-
TextAlignment="Center"
56-
TextTrimming="CharacterEllipsis"/>
57-
<Image
58-
Margin="4"
59-
MaxWidth="100"
60-
Source="https://s3.amazonaws.com/uifaces/faces/twitter/zeldman/128.jpg" />
55+
<DockPanel>
56+
<TextBlock DockPanel.Dock="Bottom"
57+
Margin="4,0,4,4"
58+
Text="@donokuda"
59+
TextAlignment="Center"
60+
TextTrimming="CharacterEllipsis"/>
61+
<Image
62+
Margin="4"
63+
MaxWidth="100"
64+
Source="https://s3.amazonaws.com/uifaces/faces/twitter/zeldman/128.jpg" />
6165
</DockPanel>
6266
</Border>
6367
</ListBoxItem>
68+
-->
6469
<ListBox.ItemsPanel>
6570
<ItemsPanelTemplate>
6671
<UniformGrid Columns="3" IsItemsHost="True">
6772
</UniformGrid>
6873
</ItemsPanelTemplate>
6974
</ListBox.ItemsPanel>
70-
<!--
7175
<ListBox.ItemTemplate>
7276
<DataTemplate>
73-
<Border Background="LightGreen">
74-
<DockPanel HorizontalAlignment="Stretch" Margin="4">
75-
<TextBlock DockPanel.Dock="Bottom"
76-
Text="{Binding Login, StringFormat=@{0}}"
77-
TextAlignment="Center"
78-
TextTrimming="CharacterEllipsis"/>
77+
<Border Margin="4" Background="#fff2f2f2" CornerRadius="3">
78+
<DockPanel>
79+
<TextBlock DockPanel.Dock="Bottom"
80+
Margin="4,0,4,4"
81+
Text="{Binding Login, StringFormat=@{0}}"
82+
TextAlignment="Center"
83+
TextTrimming="CharacterEllipsis"/>
7984
<Image
85+
Margin="4"
8086
MaxWidth="100"
8187
Source="{Binding Avatar}" />
8288
</DockPanel>
8389
</Border>
8490
</DataTemplate>
8591
</ListBox.ItemTemplate>
86-
-->
8792
</ListBox>
8893
</StackPanel>
8994

0 commit comments

Comments
 (0)