|
7 | 7 | xmlns:sourceControl="clr-namespace:Rubberduck.UI.SourceControl"
|
8 | 8 | xmlns:controls="clr-namespace:Rubberduck.UI.Controls"
|
9 | 9 | mc:Ignorable="d"
|
10 |
| - d:DesignHeight="300" d:DesignWidth="300" |
| 10 | + d:DesignHeight="600" d:DesignWidth="300" |
11 | 11 | d:DataContext="{d:DesignInstance {x:Type sourceControl:SourceControlViewViewModel}, IsDesignTimeCreatable=False}">
|
12 | 12 | <UserControl.Resources>
|
13 | 13 | <BitmapImage x:Key="RefreshImage" UriSource="../../Resources/arrow-circle-double.png" />
|
14 | 14 | <BitmapImage x:Key="OpenRepoImage" UriSource="../../Resources/folder-horizontal-open.png" />
|
15 | 15 | <BitmapImage x:Key="CreateRepoImage" UriSource="../../Resources/init-repo.png" />
|
16 | 16 | <BitmapImage x:Key="CloneRepoImage" UriSource="../../Resources/drive-download.png" />
|
| 17 | + <BitmapImage x:Key="CreateNewRemoteRepoImage" UriSource="../../Resources/drive-upload.png" /> |
17 | 18 | <BitmapImage x:Key="GitIcon" UriSource="../../Resources/icon-github.png" />
|
18 | 19 | <BitmapImage x:Key="ErrorImage" UriSource="../../Resources/cross-circle.png" />
|
19 | 20 | <BitmapImage x:Key="WarningIcon" UriSource="../../Resources/exclamation-white.png" />
|
|
246 | 247 | Background="Transparent">
|
247 | 248 | <Image Source="{StaticResource CloneRepoImage}" />
|
248 | 249 | </Button>
|
| 250 | + <Button ToolTip="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_CreateNewRemoteRepoButtonToolTip}" |
| 251 | + Command="{Binding CreateNewRemoteRepoCommand, Mode=OneWay}" |
| 252 | + BorderThickness="0" |
| 253 | + Background="Transparent"> |
| 254 | + <Image Source="{StaticResource CreateNewRemoteRepoImage}" /> |
| 255 | + </Button> |
249 | 256 | <Separator />
|
250 | 257 | <StackPanel Orientation="Horizontal">
|
251 | 258 | <Image Source="{StaticResource GitIcon}" Height="25" />
|
|
356 | 363 | <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_RemotePathLabel}"
|
357 | 364 | FontWeight="SemiBold"
|
358 | 365 | Margin="0,0,0,5" />
|
359 |
| - <TextBox Text="{Binding RemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 366 | + <TextBox Text="{Binding CloneRemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
360 | 367 | Margin="0,0,0,10"
|
361 | 368 | Height="18"
|
362 | 369 | VerticalContentAlignment="Center" />
|
363 | 370 | <Image Source="{StaticResource ErrorImage}"
|
364 | 371 | HorizontalAlignment="Right"
|
365 | 372 | Margin="0,-57,-7.8,0"
|
366 | 373 | Width="16"
|
367 |
| - Visibility="{Binding IsNotValidRemotePath, Converter={StaticResource BoolToVisibility}}" /> |
| 374 | + Visibility="{Binding IsNotValidCloneRemotePath, Converter={StaticResource BoolToVisibility}}" /> |
368 | 375 |
|
369 | 376 | <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_LocalDirectoryLabel}"
|
370 | 377 | FontWeight="SemiBold"
|
|
405 | 412 | </Grid>
|
406 | 413 | </StackPanel>
|
407 | 414 | </Grid>
|
| 415 | + |
| 416 | + <Grid Visibility="{Binding DisplayCreateNewRemoteRepoGrid, Converter={StaticResource BoolToVisibility}}" |
| 417 | + DockPanel.Dock="Top"> |
| 418 | + <StackPanel VerticalAlignment="Top" |
| 419 | + Margin="10,5"> |
| 420 | + <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_RemotePathLabel}" |
| 421 | + FontWeight="SemiBold" |
| 422 | + Margin="0,0,0,5" /> |
| 423 | + <TextBox Text="{Binding CreateNewRemoteRemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 424 | + Margin="0,0,0,10" |
| 425 | + Height="18" |
| 426 | + VerticalContentAlignment="Center" /> |
| 427 | + <Image Source="{StaticResource ErrorImage}" |
| 428 | + HorizontalAlignment="Right" |
| 429 | + Margin="0,-57,-7.8,0" |
| 430 | + Width="16" |
| 431 | + Visibility="{Binding IsNotValidCreateNewRemoteRemotePath, Converter={StaticResource BoolToVisibility}}" /> |
| 432 | + |
| 433 | + <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_BranchName}" |
| 434 | + FontWeight="SemiBold" |
| 435 | + Margin="0,0,0,5" /> |
| 436 | + <TextBox Text="{Binding RemoteBranchName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 437 | + Margin="0,0,0,10" |
| 438 | + Height="18" |
| 439 | + VerticalContentAlignment="Center" /> |
| 440 | + <Image Source="{StaticResource ErrorImage}" |
| 441 | + HorizontalAlignment="Right" |
| 442 | + Margin="0,-57,-7.8,0" |
| 443 | + Width="16" |
| 444 | + Visibility="{Binding IsNotValidBranchName, Converter={StaticResource BoolToVisibility}}" /> |
| 445 | + <Grid Grid.IsSharedSizeScope="True" |
| 446 | + HorizontalAlignment="Right"> |
| 447 | + <Grid.ColumnDefinitions> |
| 448 | + <ColumnDefinition SharedSizeGroup="CreateRemoteRepoButtons" /> |
| 449 | + <ColumnDefinition SharedSizeGroup="CreateRemoteRepoButtons" /> |
| 450 | + </Grid.ColumnDefinitions> |
| 451 | + <Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=OK}" |
| 452 | + Padding="5" |
| 453 | + Command="{Binding CreateNewRemoteRepoOkButtonCommand}"> |
| 454 | + </Button> |
| 455 | + <Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CancelButtonText}" |
| 456 | + Grid.Column="1" |
| 457 | + Margin="10,0,0,0" |
| 458 | + Padding="5" |
| 459 | + Command="{Binding CreateNewRemoteRepoCancelButtonCommand}"> |
| 460 | + </Button> |
| 461 | + </Grid> |
| 462 | + </StackPanel> |
| 463 | + </Grid> |
408 | 464 | <TabControl DockPanel.Dock="Bottom"
|
409 | 465 | ItemsSource="{Binding TabItems}"
|
410 | 466 | SelectedItem="{Binding SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
0 commit comments