|
14 | 14 | </d:DesignProperties.DataContext> |
15 | 15 |
|
16 | 16 | <StackPanel> |
17 | | - <TextBlock TextWrapping="Wrap"> |
| 17 | + <TextBlock FontSize="16" TextWrapping="Wrap"> |
18 | 18 | You're about to fork the |
19 | 19 | <Hyperlink> |
20 | 20 | <Run Text="{Binding SourceRepository.Owner, Mode=OneWay}"/>/<Run Text="{Binding SourceRepository.Name, Mode=OneWay}"/> |
21 | 21 | </Hyperlink> |
22 | 22 | repository to |
23 | 23 | <Hyperlink> |
24 | 24 | <Run Text="{Binding DestinationRepository.Owner, Mode=OneWay}"/>/<Run Text="{Binding DestinationRepository.Name, Mode=OneWay}"/> |
25 | | - </Hyperlink>. This operation will: |
| 25 | + </Hyperlink>. |
26 | 26 | </TextBlock> |
27 | 27 |
|
| 28 | + <TextBlock Margin="0 16 0 0" FontSize="14">This operation will:</TextBlock> |
| 29 | + |
| 30 | + <StackPanel Orientation="Vertical"> |
| 31 | + <Border Margin="0 4 0 0" CornerRadius="4" Background="#ffeff1f5" Padding="8"> |
| 32 | + <StackPanel Orientation="Horizontal"> |
| 33 | + <ui:OcticonImage Icon="repo_forked" Background="Red" Height="16" Width="16" /> |
| 34 | + <TextBlock>Fork the repo</TextBlock> |
| 35 | + </StackPanel> |
| 36 | + </Border> |
| 37 | + |
| 38 | + <Border Margin="0 4 0 0" CornerRadius="4" Background="#ffeff1f5" Padding="8"> |
| 39 | + <StackPanel Orientation="Horizontal"> |
| 40 | + <ui:OcticonImage Icon="repo_forked" Height="16" Width="16" /> |
| 41 | + <TextBlock TextWrapping="Wrap"> |
| 42 | + Update your local repository's <Run Style="{DynamicResource {x:Static markdig:Styles.CodeStyleKey}}">origin</Run> to point to |
| 43 | + <Hyperlink><Run Text="{Binding DestinationRepository.CloneUrl, Mode=OneWay}"/></Hyperlink> |
| 44 | + </TextBlock> |
| 45 | + </StackPanel> |
| 46 | + </Border> |
| 47 | + |
| 48 | + <Border Margin="0 4 0 0" CornerRadius="4" Background="#ffeff1f5" Padding="8"> |
| 49 | + <StackPanel Orientation="Horizontal"> |
| 50 | + <ui:OcticonImage Icon="repo_forked" Height="16" Width="16" /> |
| 51 | + <TextBlock TextWrapping="Wrap"> |
| 52 | + Add an <Run Style="{DynamicResource {x:Static markdig:Styles.CodeStyleKey}}">upstream</Run> remote pointing to |
| 53 | + <Hyperlink><Run Text="{Binding SourceRepository.CloneUrl, Mode=OneWay}"/></Hyperlink> |
| 54 | + </TextBlock> |
| 55 | + </StackPanel> |
| 56 | + </Border> |
| 57 | + |
| 58 | + <StackPanel Orientation="Vertical" Margin="0 8 0 0"> |
| 59 | + <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
| 60 | + <Button Click="repoForkButton_OnClick">Fork Repo</Button> |
| 61 | + </StackPanel> |
| 62 | + |
| 63 | + <TextBlock TextWrapping="Wrap" |
| 64 | + Foreground="Red" |
| 65 | + Text="{Binding Error, Mode=OneWay}" |
| 66 | + HorizontalAlignment="Center" |
| 67 | + Visibility="{Binding Error, Converter={ui:NullToVisibilityConverter}}"/> |
| 68 | + </StackPanel> |
| 69 | + </StackPanel> |
| 70 | + |
| 71 | + <!-- |
28 | 72 | <ItemsControl Margin="8,16,8,8"> |
29 | 73 | <ItemsControl.Resources> |
30 | 74 | <Style x:Key="ItemBorder" TargetType="Border"> |
|
73 | 117 | </StackPanel> |
74 | 118 | </Border> |
75 | 119 | </ItemsControl> |
| 120 | + --> |
76 | 121 | </StackPanel> |
77 | 122 | </UserControl> |
0 commit comments