|
83 | 83 | Visibility="{Binding Error, Converter={ui:NullToVisibilityConverter}}"/> |
84 | 84 | </StackPanel> |
85 | 85 | </StackPanel> |
86 | | - |
87 | | - <!-- |
88 | | - <ItemsControl Margin="8,16,8,8"> |
89 | | - <ItemsControl.Resources> |
90 | | - <Style x:Key="ItemBorder" TargetType="Border"> |
91 | | - <Setter Property="Background" Value="#10000000"/> |
92 | | - <Setter Property="CornerRadius" Value="3"/> |
93 | | - <Setter Property="Margin" Value="4"/> |
94 | | - <Setter Property="Padding" Value="4,8"/> |
95 | | - </Style> |
96 | | - <Style TargetType="CheckBox"> |
97 | | - <Setter Property="Margin" Value="0,1,6,0"/> |
98 | | - <Setter Property="VerticalAlignment" Value="Center"/> |
99 | | - </Style> |
100 | | - </ItemsControl.Resources> |
101 | | - <Border Style="{StaticResource ItemBorder}"> |
102 | | - <DockPanel> |
103 | | - <CheckBox IsChecked="True" IsEnabled="False"/> |
104 | | - <TextBlock>Fork the repository</TextBlock> |
105 | | - </DockPanel> |
106 | | - </Border> |
107 | | - <Border Style="{StaticResource ItemBorder}"> |
108 | | - <DockPanel> |
109 | | - <CheckBox IsChecked="{Binding UpdateOrigin}" IsEnabled="False" /> |
110 | | - <TextBlock TextWrapping="Wrap"> |
111 | | - Update your local repository's <Run Style="{DynamicResource {x:Static markdig:Styles.CodeStyleKey}}">origin</Run> to point to |
112 | | - <Hyperlink><Run Text="{Binding DestinationRepository.CloneUrl, Mode=OneWay}"/></Hyperlink> |
113 | | - </TextBlock> |
114 | | - </DockPanel> |
115 | | - </Border> |
116 | | - <Border Style="{StaticResource ItemBorder}"> |
117 | | - <DockPanel> |
118 | | - <CheckBox IsChecked="{Binding AddUpstream}" IsEnabled="False" /> |
119 | | - <TextBlock TextWrapping="Wrap"> |
120 | | - Add an <Run Style="{DynamicResource {x:Static markdig:Styles.CodeStyleKey}}">upstream</Run> remote pointing to |
121 | | - <Hyperlink><Run Text="{Binding SourceRepository.CloneUrl, Mode=OneWay}"/></Hyperlink> |
122 | | - </TextBlock> |
123 | | - </DockPanel> |
124 | | - </Border> |
125 | | - <Border Style="{StaticResource ItemBorder}"> |
126 | | - <StackPanel > |
127 | | - <Button Click="repoForkButton_OnClick">Fork Repo</Button> |
128 | | - <TextBlock TextWrapping="Wrap" |
129 | | - Foreground="Red" |
130 | | - Text="{Binding Error, Mode=OneWay}" |
131 | | - HorizontalAlignment="Center" |
132 | | - Visibility="{Binding Error, Converter={ui:NullToVisibilityConverter}}"/> |
133 | | - </StackPanel> |
134 | | - </Border> |
135 | | - </ItemsControl> |
136 | | - --> |
137 | 86 | </StackPanel> |
138 | 87 | </UserControl> |
0 commit comments