|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
3 | 3 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 5 | + xmlns:m="using:SourceGit.Models" |
5 | 6 | xmlns:vm="using:SourceGit.ViewModels"
|
| 7 | + xmlns:v="using:SourceGit.Views" |
6 | 8 | xmlns:c="using:SourceGit.Converters"
|
7 | 9 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
8 | 10 | x:Class="SourceGit.Views.DeleteBranch"
|
|
12 | 14 | Classes="bold"
|
13 | 15 | Text="{DynamicResource Text.DeleteBranch}"/>
|
14 | 16 |
|
15 |
| - <Grid Margin="0,16,8,0" RowDefinitions="32,Auto" ColumnDefinitions="150,*"> |
| 17 | + <Grid Margin="0,16,8,0" RowDefinitions="32,Auto" ColumnDefinitions="120,*"> |
16 | 18 | <TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" Text="{DynamicResource Text.DeleteBranch.Branch}"/>
|
17 | 19 | <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
|
18 | 20 | <Path Width="14" Height="14" Margin="8,0" Data="{StaticResource Icons.Branch}"/>
|
19 | 21 | <TextBlock Text="{Binding Target, Converter={x:Static c:BranchConverters.ToName}}"/>
|
20 | 22 | </StackPanel>
|
21 | 23 |
|
22 | 24 | <Border Grid.Row="1" Grid.Column="1" Height="32" IsVisible="{Binding !Target.IsLocal}">
|
23 |
| - <TextBlock Margin="8,0" |
| 25 | + <TextBlock Margin="6,0,0,0" |
24 | 26 | Text="{DynamicResource Text.DeleteBranch.IsRemoteTip}"
|
25 | 27 | Foreground="{DynamicResource Brush.FG2}"
|
26 | 28 | FontStyle="Italic"
|
27 | 29 | VerticalAlignment="Center"/>
|
28 | 30 | </Border>
|
| 31 | + |
| 32 | + <Border Grid.Row="1" Grid.Column="1" Height="32" IsVisible="{Binding TrackingRemoteBranch, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 33 | + <CheckBox Margin="6,0,0,0" Content="{Binding DeleteTrackingRemoteTip}" IsChecked="{Binding AlsoDeleteTrackingRemote, Mode=TwoWay}"/> |
| 34 | + </Border> |
29 | 35 | </Grid>
|
30 | 36 | </StackPanel>
|
31 | 37 | </UserControl>
|
0 commit comments