|
7 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
8 | 8 | xmlns:local="clr-namespace:GitHub.VisualStudio.Views.Dialog" |
9 | 9 | xmlns:sampleData="clr-namespace:GitHub.SampleData;assembly=GitHub.App" |
10 | | - Margin="8" |
11 | 10 | mc:Ignorable="d" |
12 | 11 | d:DesignHeight="414" d:DesignWidth="440"> |
13 | 12 |
|
|
24 | 23 | <sampleData:ForkRepositorySelectViewModelDesigner IsLoading="True"/> |
25 | 24 | </d:DesignProperties.DataContext> |
26 | 25 |
|
27 | | - <Grid> |
| 26 | + <Grid Margin="0 8"> |
28 | 27 | <Grid.RowDefinitions> |
| 28 | + <!-- |
29 | 29 | <RowDefinition Height="2*"/> |
| 30 | + --> |
| 31 | + <RowDefinition Height="Auto"/> |
30 | 32 | <RowDefinition Height="Auto"/> |
31 | 33 | </Grid.RowDefinitions> |
32 | 34 |
|
33 | | - <StackPanel Grid.Row="0"> |
34 | | - <TextBlock DockPanel.Dock="Top" FontSize="16" Margin="0 8"> |
| 35 | + <DockPanel Grid.Row="0"> |
| 36 | + <TextBlock DockPanel.Dock="Top" FontSize="16" Margin="8"> |
35 | 37 | Where should we fork this repository? |
36 | 38 | </TextBlock> |
37 | 39 |
|
|
46 | 48 | ItemsSource="{Binding Accounts}" |
47 | 49 | VerticalContentAlignment="Top" |
48 | 50 | HorizontalContentAlignment="Stretch" |
| 51 | + Padding="8" |
| 52 | + DockPanel.Dock="Top" |
49 | 53 | ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
50 | 54 | SelectionChanged="accountsListBox_SelectionChanged"> |
51 | 55 | <ListBox.ItemsPanel> |
52 | 56 | <ItemsPanelTemplate> |
53 | | - <UniformGrid Columns="3" IsItemsHost="True"> |
54 | | - </UniformGrid> |
| 57 | + <UniformGrid Columns="3" IsItemsHost="True" /> |
55 | 58 | </ItemsPanelTemplate> |
56 | 59 | </ListBox.ItemsPanel> |
57 | 60 | <ListBox.ItemTemplate> |
|
72 | 75 | </DataTemplate> |
73 | 76 | </ListBox.ItemTemplate> |
74 | 77 | </ListBox> |
75 | | - </StackPanel> |
76 | 78 |
|
77 | | - <DockPanel Grid.Row="1" Visibility="{Binding ExistingForks, Converter={ui:HasItemsVisibilityConverter}}"> |
78 | | - <TextBlock DockPanel.Dock="Top" Margin="0 8"> |
79 | | - <Run FontSize="16">Can't find what you're looking for?</Run> |
80 | | - <LineBreak/> |
81 | | - <Run>You have existing forks of this repository:</Run> |
82 | | - </TextBlock> |
83 | | - <ListBox DockPanel.Dock="Bottom" ItemsSource="{Binding ExistingForks}" MaxHeight="120"> |
84 | | - <ListBox.ItemTemplate> |
85 | | - <DataTemplate> |
86 | | - <StackPanel Orientation="Horizontal"> |
| 79 | + <!-- |
| 80 | + <DockPanel Grid.Row="1" Visibility="{Binding ExistingForks, Converter={ui:HasItemsVisibilityConverter}}"> |
| 81 | + --> |
| 82 | + <DockPanel DockPanel.Dock="Bottom" Margin="0 16 0 0"> |
| 83 | + <TextBlock DockPanel.Dock="Top" Margin="8 0"> |
| 84 | + <Run FontWeight="SemiBold">Can't find what you're looking for?</Run> |
| 85 | + <LineBreak/> |
| 86 | + <Run>You have existing forks of this repository:</Run> |
| 87 | + </TextBlock> |
| 88 | + <!-- |
| 89 | + ItemsSource="{Binding ExistingForks}" |
| 90 | + --> |
| 91 | + <ItemsControl DockPanel.Dock="Bottom" MaxHeight="120" Padding="8 0" ScrollViewer.VerticalScrollBarVisibility="Auto"> |
| 92 | + <StackPanel Orientation="Horizontal" Margin="0 4 0 0"> |
87 | 93 | <ui:OcticonImage Icon="repo_forked" Margin="0,0,2,-2"/> |
88 | | - <TextBlock Text="{Binding Owner, Mode=OneWay}"/> |
89 | | - <TextBlock Text="/"/> |
90 | | - <TextBlock Text="{Binding Name, Mode=OneWay}"/> |
| 94 | + <TextBlock Text="donokuda/foo-bar" /> |
91 | 95 | </StackPanel> |
92 | | - </DataTemplate> |
93 | | - </ListBox.ItemTemplate> |
94 | | - </ListBox> |
| 96 | + |
| 97 | + <StackPanel Orientation="Horizontal" Margin="0 4 0 0"> |
| 98 | + <ui:OcticonImage Icon="repo_forked" Margin="0,0,2,-2"/> |
| 99 | + <TextBlock Text="donokuda/foo-bar" /> |
| 100 | + </StackPanel> |
| 101 | + |
| 102 | + <StackPanel Orientation="Horizontal" Margin="0 4 0 0"> |
| 103 | + <ui:OcticonImage Icon="repo_forked" Margin="0,0,2,-2"/> |
| 104 | + <TextBlock Text="donokuda/foo-bar" /> |
| 105 | + </StackPanel> |
| 106 | + <!-- |
| 107 | + <ItemsControl.ItemTemplate> |
| 108 | + <DataTemplate> |
| 109 | + <StackPanel Orientation="Horizontal"> |
| 110 | + <ui:OcticonImage Icon="repo_forked" Margin="0,0,2,-2"/> |
| 111 | + <TextBlock Text="{Binding Owner, Mode=OneWay}"/> |
| 112 | + <TextBlock Text="/"/> |
| 113 | + <TextBlock Text="{Binding Name, Mode=OneWay}"/> |
| 114 | + </StackPanel> |
| 115 | + </DataTemplate> |
| 116 | + </ListBox.ItemTemplate> |
| 117 | + --> |
| 118 | + </ItemsControl> |
| 119 | + </DockPanel> |
95 | 120 | </DockPanel> |
96 | 121 | </Grid> |
97 | 122 | </UserControl> |
0 commit comments