This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathRepositoryCloneView.xaml
More file actions
90 lines (84 loc) · 4.79 KB
/
RepositoryCloneView.xaml
File metadata and controls
90 lines (84 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<UserControl x:Class="GitHub.VisualStudio.Views.Dialog.Clone.RepositoryCloneView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ghfvs="https://github.com/github/VisualStudio"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:GitHub.VisualStudio.Views.Dialog.Clone"
xmlns:uic="clr-namespace:GitHub.VisualStudio.UI.Controls"
mc:Ignorable="d" d:DesignHeight="414" d:DesignWidth="440">
<d:DesignData.DataContext>
<ghfvs:RepositoryCloneViewModelDesigner/>
</d:DesignData.DataContext>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" />
<ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI.Reactive;component/SharedDictionary.xaml" />
<ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio.UI;component/SharedDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<DockPanel>
<StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Center">
<ghfvs:OcticonCircleButton
Margin="12"
HorizontalAlignment="Center"
Icon="check"
IsDefault="True"
Command="{Binding Clone}"
Content="Clone"
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.CloneRepositoryButton}"/>
<ghfvs:OcticonCircleButton
Margin="12"
HorizontalAlignment="Center"
Icon="check"
IsDefault="True"
Command="{Binding Open}"
Content="Open"
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.OpenRepositoryButton}"/>
</StackPanel>
<DockPanel DockPanel.Dock="Bottom"
Margin="16">
<Label DockPanel.Dock="Left" Content="{x:Static ghfvs:Resources.localPathText}"/>
<Button DockPanel.Dock="Right"
Command="{Binding Browse}"
Style="{DynamicResource GitHubBlueLinkButton}"
VerticalContentAlignment="Center">
Browse
</Button>
<TextBox Text="{Binding Path, UpdateSourceTrigger=PropertyChanged}"/>
</DockPanel>
<uic:InfoPanel Message="{Binding PathWarning}"
DockPanel.Dock="Bottom"
Margin="0"/>
<TabControl SelectedIndex="{Binding SelectedTabIndex}"
Style="{StaticResource LightModalViewTabControl}">
<TabItem Header="GitHub.com"
Style="{DynamicResource LightModalViewTabItem}"
Visibility="{Binding GitHubTab.IsEnabled, Converter={ghfvs:BooleanToVisibilityConverter}}">
<local:SelectPageView DataContext="{Binding GitHubTab}"/>
</TabItem>
<TabItem Header="Enterprise"
Style="{DynamicResource LightModalViewTabItem}"
Visibility="{Binding EnterpriseTab.IsEnabled, Converter={ghfvs:BooleanToVisibilityConverter}}">
<local:SelectPageView DataContext="{Binding EnterpriseTab}"/>
</TabItem>
<TabItem Header="URL" Style="{DynamicResource LightModalViewTabItem}">
<DockPanel DataContext="{Binding UrlTab}"
LastChildFill="False"
Margin="8">
<TextBlock DockPanel.Dock="Top">
Repository URL or GitHub username and repository
<LineBreak/>
(<Run Background="#66d3d3d3" FontFamily="Consolas">hubot/cool-repo</Run>)
</TextBlock>
<ghfvs:PromptTextBox DockPanel.Dock="Top"
Margin="0 4"
PromptText="URL or username/repository"
Text="{Binding Url, UpdateSourceTrigger=PropertyChanged}"/>
</DockPanel>
</TabItem>
</TabControl>
</DockPanel>
</UserControl>