mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
95 lines
4.3 KiB
XML
95 lines
4.3 KiB
XML
<UserControl x:Class="SourceGit.UI.Clone"
|
|
x:Name="me"
|
|
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:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:helpers="clr-namespace:SourceGit.Helpers"
|
|
mc:Ignorable="d"
|
|
Width="500" Height="224">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="16"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="16"/>
|
|
<RowDefinition Height="32"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label Grid.Row="0" Grid.ColumnSpan="2" FontWeight="DemiBold" FontSize="18" Content="Clone Remote Repository"/>
|
|
|
|
<Label Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" Content="Repository URL :"/>
|
|
<TextBox x:Name="txtUrl" Grid.Row="2" Grid.Column="1"
|
|
Height="24"
|
|
helpers:TextBoxHelper.Placeholder="Git Repository URL">
|
|
<TextBox.Text>
|
|
<Binding Path="RemoteUri" ElementName="me" UpdateSourceTrigger="PropertyChanged" Mode="TwoWay">
|
|
<Binding.ValidationRules>
|
|
<helpers:RemoteUriRule/>
|
|
</Binding.ValidationRules>
|
|
</Binding>
|
|
</TextBox.Text>
|
|
</TextBox>
|
|
|
|
<Label Grid.Row="3" Grid.Column="0" HorizontalAlignment="Right" Content="Parent Folder :"/>
|
|
<Grid Grid.Row="3" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="28"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox Grid.Column="0"
|
|
x:Name="txtParentFolder"
|
|
Height="24"
|
|
helpers:TextBoxHelper.Placeholder="Folder to contain this repository">
|
|
<TextBox.Text>
|
|
<Binding Path="ParentFolder" ElementName="me" UpdateSourceTrigger="PropertyChanged" Mode="TwoWay">
|
|
<Binding.ValidationRules>
|
|
<helpers:CloneFolderRule/>
|
|
</Binding.ValidationRules>
|
|
</Binding>
|
|
</TextBox.Text>
|
|
</TextBox>
|
|
<Button Grid.Column="1" Width="24" Height="24" Padding="0" BorderThickness="1" Click="SelectParentFolder" Style="{StaticResource Style.Button.Bordered}">
|
|
<Path Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Folder}"/>
|
|
</Button>
|
|
</Grid>
|
|
|
|
<Label Grid.Row="4" Grid.Column="0" HorizontalAlignment="Right" Content="Local Name :"/>
|
|
<TextBox Grid.Row="4" Grid.Column="1"
|
|
VerticalContentAlignment="Center"
|
|
Height="24"
|
|
helpers:TextBoxHelper.Placeholder="Repository name. Optional."
|
|
Text="{Binding LocalName, ElementName=me, Mode=TwoWay}">
|
|
</TextBox>
|
|
|
|
<Label Grid.Row="5" Grid.Column="0" HorizontalAlignment="Right" Content="Remote Name :"/>
|
|
<TextBox Grid.Row="5" Grid.Column="1"
|
|
VerticalContentAlignment="Center"
|
|
Height="24"
|
|
helpers:TextBoxHelper.Placeholder="Remote name. Optional."
|
|
Text="{Binding RemoteName, ElementName=me, Mode=TwoWay}">
|
|
</TextBox>
|
|
|
|
<Grid Grid.Row="7" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition Width="8"/>
|
|
<ColumnDefinition Width="80"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button Grid.Column="1" Click="Start" Content="SURE" Style="{StaticResource Style.Button.AccentBordered}"/>
|
|
<Button Grid.Column="3" Click="Cancel" Content="CANCEL" Style="{StaticResource Style.Button.Bordered}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|
|
|