|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:m="using:SourceGit.Models" |
6 | 6 | xmlns:vm="using:SourceGit.ViewModels" |
| 7 | + xmlns:v="using:SourceGit.Views" |
7 | 8 | xmlns:c="using:SourceGit.Converters" |
8 | 9 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
9 | 10 | x:Class="SourceGit.Views.Rebase" |
|
19 | 20 | Text="{DynamicResource Text.Rebase}"/> |
20 | 21 | </StackPanel> |
21 | 22 |
|
22 | | - <Grid Margin="0,16,0,0" RowDefinitions="32,32,32,32" ColumnDefinitions="130,*"> |
| 23 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32,32,32,Auto" ColumnDefinitions="130,*"> |
23 | 24 | <TextBlock Grid.Row="0" Grid.Column="0" |
24 | 25 | HorizontalAlignment="Right" VerticalAlignment="Center" |
25 | 26 | Margin="0,0,8,0" |
|
61 | 62 | Content="{DynamicResource Text.Rebase.NoVerify}" |
62 | 63 | IsChecked="{Binding NoVerify, Mode=TwoWay}" |
63 | 64 | ToolTip.Tip="--no-verify"/> |
| 65 | + |
| 66 | + <Grid Grid.Row="4" Grid.Column="1" |
| 67 | + Height="32" |
| 68 | + IsVisible="{Binding TestingState, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter={x:Static vm:RebaseTestingState.Disabled}}"> |
| 69 | + <StackPanel Orientation="Horizontal" |
| 70 | + VerticalAlignment="Center" |
| 71 | + IsVisible="{Binding TestingState, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static vm:RebaseTestingState.Testing}}"> |
| 72 | + <v:LoadingIcon Width="14" Height="14" |
| 73 | + IsVisible="{Binding TestingState, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static vm:RebaseTestingState.Testing}}"/> |
| 74 | + |
| 75 | + <TextBlock Margin="8,0,0,0" |
| 76 | + VerticalAlignment="Center" |
| 77 | + Text="{DynamicResource Text.Rebase.Test}"/> |
| 78 | + </StackPanel> |
| 79 | + |
| 80 | + <StackPanel Orientation="Horizontal" |
| 81 | + VerticalAlignment="Center" |
| 82 | + IsVisible="{Binding TestingState, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static vm:RebaseTestingState.NoConflicts}}"> |
| 83 | + <Path Width="14" Height="14" |
| 84 | + Data="{DynamicResource Icons.CheckCircled}" |
| 85 | + Fill="Green"/> |
| 86 | + |
| 87 | + <TextBlock Margin="8,0,0,0" |
| 88 | + VerticalAlignment="Center" |
| 89 | + Text="{DynamicResource Text.Rebase.Test.OK}"/> |
| 90 | + </StackPanel> |
| 91 | + |
| 92 | + <StackPanel Orientation="Horizontal" |
| 93 | + VerticalAlignment="Center" |
| 94 | + IsVisible="{Binding TestingState, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static vm:RebaseTestingState.WillCauseConflicts}}"> |
| 95 | + <Path Width="14" Height="14" |
| 96 | + Data="{DynamicResource Icons.Error}" |
| 97 | + Fill="Goldenrod"/> |
| 98 | + |
| 99 | + <TextBlock Margin="8,0,0,0" |
| 100 | + VerticalAlignment="Center" |
| 101 | + Text="{DynamicResource Text.Rebase.Test.WillCauseConflicts}"/> |
| 102 | + </StackPanel> |
| 103 | + |
| 104 | + <StackPanel Orientation="Horizontal" |
| 105 | + VerticalAlignment="Center" |
| 106 | + IsVisible="{Binding TestingState, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static vm:RebaseTestingState.UnknownError}}"> |
| 107 | + <Path Width="14" Height="14" |
| 108 | + Data="{DynamicResource Icons.Error}" |
| 109 | + Fill="Goldenrod"/> |
| 110 | + |
| 111 | + <TextBlock Margin="8,0,0,0" |
| 112 | + VerticalAlignment="Center" |
| 113 | + Text="{DynamicResource Text.Rebase.Test.UnknownError}"/> |
| 114 | + </StackPanel> |
| 115 | + </Grid> |
64 | 116 | </Grid> |
65 | 117 | </StackPanel> |
66 | 118 | </UserControl> |
0 commit comments