|
41 | 41 | Style="{DynamicResource GitHubProgressBar}" |
42 | 42 | Visibility="{Binding IsLoading, Converter={ui:BooleanToHiddenVisibilityConverter}}"/> |
43 | 43 |
|
44 | | - <!-- ItemsSource="{Binding Accounts}" --> |
| 44 | + <!--ItemsSource="{Binding Accounts}" --> |
45 | 45 | <ListBox Name="accountsListBox" |
46 | 46 | BorderThickness="0" |
| 47 | + ItemsSource="{Binding Accounts}" |
| 48 | + VerticalContentAlignment="Top" |
47 | 49 | HorizontalContentAlignment="Stretch" |
48 | 50 | ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
49 | 51 | SelectionChanged="accountsListBox_SelectionChanged"> |
| 52 | + <!-- |
50 | 53 | <ListBoxItem Margin="4"> |
51 | 54 | <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" /> |
61 | 65 | </DockPanel> |
62 | 66 | </Border> |
63 | 67 | </ListBoxItem> |
| 68 | + --> |
64 | 69 | <ListBox.ItemsPanel> |
65 | 70 | <ItemsPanelTemplate> |
66 | 71 | <UniformGrid Columns="3" IsItemsHost="True"> |
67 | 72 | </UniformGrid> |
68 | 73 | </ItemsPanelTemplate> |
69 | 74 | </ListBox.ItemsPanel> |
70 | | - <!-- |
71 | 75 | <ListBox.ItemTemplate> |
72 | 76 | <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"/> |
79 | 84 | <Image |
| 85 | + Margin="4" |
80 | 86 | MaxWidth="100" |
81 | 87 | Source="{Binding Avatar}" /> |
82 | 88 | </DockPanel> |
83 | 89 | </Border> |
84 | 90 | </DataTemplate> |
85 | 91 | </ListBox.ItemTemplate> |
86 | | - --> |
87 | 92 | </ListBox> |
88 | 93 | </StackPanel> |
89 | 94 |
|
|
0 commit comments