mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
53c65faecb
1. User name and email for single repository 2. Simple commit template
71 lines
3.1 KiB
XML
71 lines
3.1 KiB
XML
<UserControl x:Class="SourceGit.UI.Configure"
|
|
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"
|
|
d:DesignHeight="450" d:DesignWidth="500" Width="500" Height="314">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="36"/>
|
|
<RowDefinition Height="8"/>
|
|
<RowDefinition Height="28"/>
|
|
<RowDefinition Height="28"/>
|
|
<RowDefinition Height="18"/>
|
|
<RowDefinition Height="36"/>
|
|
<RowDefinition Height="8"/>
|
|
<RowDefinition Height="102"/>
|
|
<RowDefinition Height="18"/>
|
|
<RowDefinition Height="32"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- 仓库帐号 -->
|
|
<Label Grid.Row="0" Grid.ColumnSpan="2" Content="CREDENTIAL" FontSize="16" FontWeight="DemiBold" Opacity=".85"/>
|
|
<Label Grid.Row="2" Grid.Column="0" Content="User : " HorizontalAlignment="Right"/>
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="24"
|
|
Text="{Binding ElementName=me, Path=UserName, Mode=TwoWay}"
|
|
helpers:TextBoxHelper.Placeholder="User name for this repository"/>
|
|
<Label Grid.Row="3" Grid.Column="0" Content="Email : " HorizontalAlignment="Right"/>
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="24"
|
|
Text="{Binding ElementName=me, Path=UserEmail, Mode=TwoWay}"
|
|
helpers:TextBoxHelper.Placeholder="Email address"/>
|
|
|
|
<!-- 提交模板 -->
|
|
<Label Grid.Row="5" Grid.ColumnSpan="2" Content="COMMIT TEMPLATE" FontSize="16" FontWeight="DemiBold" Opacity=".85"/>
|
|
<Label Grid.Row="7" Grid.Column="0" Content="Template : " HorizontalAlignment="Right" VerticalAlignment="Top"/>
|
|
<TextBox
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Height="100"
|
|
AcceptsReturn="True"
|
|
AcceptsTab="True"
|
|
Padding="2"
|
|
Text="{Binding ElementName=me, Path=CommitTemplate, Mode=TwoWay}"/>
|
|
|
|
<!-- 操作 -->
|
|
<Grid Grid.Row="9" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition Width="8"/>
|
|
<ColumnDefinition Width="80"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button Grid.Column="1" Click="Save" Content="SAVE" Style="{StaticResource Style.Button.AccentBordered}"/>
|
|
<Button Grid.Column="3" Click="Close" Content="CLOSE" Style="{StaticResource Style.Button.Bordered}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|