|
11 | 11 | <TextBlock FontSize="18"
|
12 | 12 | Classes="bold"
|
13 | 13 | Text="{DynamicResource Text.ScanRepositories}"/>
|
14 |
| - <Grid Margin="0,16,0,0" RowDefinitions="32" ColumnDefinitions="120,*"> |
| 14 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32" ColumnDefinitions="120,*"> |
15 | 15 | <TextBlock Grid.Row="0" Grid.Column="0"
|
16 | 16 | HorizontalAlignment="Right" VerticalAlignment="Center"
|
17 | 17 | Margin="0,0,8,0"
|
|
20 | 20 | Height="28" Padding="4,0"
|
21 | 21 | VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
22 | 22 | ItemsSource="{Binding ScanDirs, Mode=OneWay}"
|
23 |
| - SelectedItem="{Binding Selected, Mode=TwoWay}"> |
| 23 | + SelectedItem="{Binding Selected, Mode=TwoWay}" |
| 24 | + IsVisible="{Binding !UseCustomDir, Mode=OneWay}"> |
24 | 25 | <ComboBox.ItemTemplate>
|
25 | 26 | <DataTemplate DataType="m:ScanDir">
|
26 | 27 | <Grid ColumnDefinitions="20,*,Auto">
|
|
38 | 39 | </DataTemplate>
|
39 | 40 | </ComboBox.ItemTemplate>
|
40 | 41 | </ComboBox>
|
| 42 | + <TextBox Grid.Row="0" Grid.Column="1" |
| 43 | + Height="28" |
| 44 | + CornerRadius="3" |
| 45 | + Text="{Binding CustomDir, Mode=TwoWay}" |
| 46 | + IsVisible="{Binding UseCustomDir, Mode=OneWay}"> |
| 47 | + <TextBox.InnerRightContent> |
| 48 | + <Button Classes="icon_button" Width="30" Height="30" Click="OnSelectRootDir"> |
| 49 | + <Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/> |
| 50 | + </Button> |
| 51 | + </TextBox.InnerRightContent> |
| 52 | + </TextBox> |
| 53 | + |
| 54 | + <CheckBox Grid.Row="1" Grid.Column="1" |
| 55 | + Content="{DynamicResource Text.ScanRepositories.UseCustomDir}" |
| 56 | + IsChecked="{Binding UseCustomDir, Mode=TwoWay}"/> |
41 | 57 | </Grid>
|
42 | 58 | </StackPanel>
|
43 | 59 | </UserControl>
|
0 commit comments