|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:vm="using:SourceGit.ViewModels" |
| 6 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 7 | + x:Class="SourceGit.Views.SetSubmoduleBranch" |
| 8 | + x:DataType="vm:SetSubmoduleBranch"> |
| 9 | + <StackPanel Orientation="Vertical" Margin="8,0"> |
| 10 | + <TextBlock FontSize="18" |
| 11 | + Classes="bold" |
| 12 | + Text="{DynamicResource Text.SetSubmoduleBranch}"/> |
| 13 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32,32" ColumnDefinitions="120,*"> |
| 14 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 15 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 16 | + Margin="0,0,8,0" |
| 17 | + Text="{DynamicResource Text.SetSubmoduleBranch.Submodule}"/> |
| 18 | + <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
| 19 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Submodule}"/> |
| 20 | + <TextBlock Margin="6,0,0,0" Text="{Binding Submodule.Path}"/> |
| 21 | + </StackPanel> |
| 22 | + |
| 23 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 24 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 25 | + Margin="0,0,8,0" |
| 26 | + Text="{DynamicResource Text.SetSubmoduleBranch.Current}"/> |
| 27 | + <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal"> |
| 28 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Branch}"/> |
| 29 | + <TextBlock Margin="6,0,0,0" |
| 30 | + Text="{Binding Submodule.Branch, Mode=OneWay}" |
| 31 | + IsVisible="{Binding Submodule.Branch, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> |
| 32 | + <TextBlock Margin="6,0,0,0" |
| 33 | + Text="--" |
| 34 | + IsVisible="{Binding Submodule.Branch, Converter={x:Static StringConverters.IsNullOrEmpty}}"/> |
| 35 | + </StackPanel> |
| 36 | + |
| 37 | + <TextBlock Grid.Row="2" Grid.Column="0" |
| 38 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 39 | + Margin="0,0,8,0" |
| 40 | + Text="{DynamicResource Text.SetSubmoduleBranch.New}"/> |
| 41 | + <TextBox Grid.Row="2" Grid.Column="1" |
| 42 | + Height="26" |
| 43 | + VerticalAlignment="Center" |
| 44 | + CornerRadius="2" |
| 45 | + Watermark="{DynamicResource Text.SetSubmoduleBranch.New.Tip}" |
| 46 | + Text="{Binding ChangeTo, Mode=TwoWay}"/> |
| 47 | + </Grid> |
| 48 | + </StackPanel> |
| 49 | +</UserControl> |
0 commit comments