|
5 | 5 | xmlns:m="using:SourceGit.Models"
|
6 | 6 | xmlns:vm="using:SourceGit.ViewModels"
|
7 | 7 | xmlns:v="using:SourceGit.Views"
|
8 |
| - xmlns:ac="using:Avalonia.Controls.Converters" |
9 | 8 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
10 | 9 | x:Class="SourceGit.Views.RepositoryConfigure"
|
11 | 10 | x:DataType="vm:RepositoryConfigure"
|
|
412 | 411 | <TextBlock Text="{DynamicResource Text.Configure.CustomAction.Name}"/>
|
413 | 412 | <TextBox Margin="0,4,0,0" CornerRadius="3" Height="28" Text="{Binding Name, Mode=TwoWay}"/>
|
414 | 413 |
|
415 |
| - <StackPanel Orientation="Horizontal" Margin="0,12,0,0"> |
416 |
| - <StackPanel.Resources> |
417 |
| - <ac:EnumToBoolConverter x:Key="EnumToBoolConverter"/> |
418 |
| - </StackPanel.Resources> |
419 |
| - |
420 |
| - <TextBlock Text="{DynamicResource Text.Configure.CustomAction.Scope}"/> |
421 |
| - <RadioButton Content="{DynamicResource Text.Configure.CustomAction.Scope.Repository}" |
422 |
| - GroupName="CustomActionScope" |
423 |
| - Margin="8,0" |
424 |
| - IsChecked="{Binding Scope, Mode=TwoWay, Converter={StaticResource EnumToBoolConverter}, ConverterParameter={x:Static m:CustomActionScope.Repository}}"/> |
425 |
| - <RadioButton Content="{DynamicResource Text.Configure.CustomAction.Scope.Commit}" |
426 |
| - GroupName="CustomActionScope" |
427 |
| - IsChecked="{Binding Scope, Mode=TwoWay, Converter={StaticResource EnumToBoolConverter}, ConverterParameter={x:Static m:CustomActionScope.Commit}}"/> |
428 |
| - </StackPanel> |
| 414 | + <TextBlock Margin="0,12,0,0" Text="{DynamicResource Text.Configure.CustomAction.Scope}"/> |
| 415 | + <ComboBox Margin="0,4,0,0" Height="28" HorizontalAlignment="Stretch" SelectedIndex="{Binding Scope, Mode=TwoWay}"> |
| 416 | + <ComboBoxItem Content="{DynamicResource Text.Configure.CustomAction.Scope.Repository}"/> |
| 417 | + <ComboBoxItem Content="{DynamicResource Text.Configure.CustomAction.Scope.Commit}"/> |
| 418 | + <ComboBoxItem Content="{DynamicResource Text.Configure.CustomAction.Scope.Branch}"/> |
| 419 | + </ComboBox> |
429 | 420 |
|
430 | 421 | <TextBlock Margin="0,12,0,0" Text="{DynamicResource Text.Configure.CustomAction.Executable}"/>
|
431 | 422 | <TextBox Margin="0,4,0,0" Height="28" CornerRadius="3" Text="{Binding Executable, Mode=TwoWay}">
|
|
0 commit comments