|
14 | 14 | Title="{DynamicResource Text.GitLFS.Locks.Title}" |
15 | 15 | Width="600" Height="400" |
16 | 16 | WindowStartupLocation="CenterOwner"> |
17 | | - <Grid RowDefinitions="Auto,Auto,*"> |
| 17 | + <Grid RowDefinitions="Auto,*,40"> |
18 | 18 | <!-- TitleBar --> |
19 | 19 | <Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
20 | 20 | <Border Background="{DynamicResource Brush.TitleBar}" |
|
37 | 37 | IsVisible="{OnPlatform True, macOS=False}"/> |
38 | 38 | </Grid> |
39 | 39 |
|
40 | | - <!-- Filter and Unlock All --> |
41 | | - <StackPanel Grid.Row="1" |
42 | | - HorizontalAlignment="Left" |
43 | | - Orientation="Horizontal"> |
44 | | - |
45 | | - <CheckBox Margin="8,0,4,0" |
46 | | - Content="{DynamicResource Text.GitLFS.Locks.OnlyMine}" |
47 | | - IsChecked="{Binding ShowOnlyMyLocks, Mode=TwoWay}" |
48 | | - VerticalAlignment="Center"> |
49 | | - <CheckBox.IsEnabled> |
50 | | - <MultiBinding Converter="{x:Static BoolConverters.And}"> |
51 | | - <Binding Path="HasValidUserName" /> |
52 | | - <Binding Path="!IsLoading" /> |
53 | | - </MultiBinding> |
54 | | - </CheckBox.IsEnabled> |
55 | | - </CheckBox> |
56 | | - |
57 | | - <Button Margin="4,0,4,0" |
58 | | - Content="{DynamicResource Text.GitLFS.Locks.UnlockAllMyLocks}" |
59 | | - Click="OnUnlockAllMyLocksButtonClicked"> |
60 | | - <Button.IsEnabled> |
61 | | - <MultiBinding Converter="{x:Static BoolConverters.And}"> |
62 | | - <Binding Path="HasValidUserName" /> |
63 | | - <Binding Path="!IsLoading" /> |
64 | | - </MultiBinding> |
65 | | - </Button.IsEnabled> |
66 | | - </Button> |
67 | | - |
68 | | - </StackPanel> |
69 | | - |
70 | 40 | <!-- Locked Files --> |
71 | | - <Grid Grid.Row="2"> |
72 | | - <ListBox Margin="8,0,8,8" |
| 41 | + <Grid Grid.Row="1"> |
| 42 | + <ListBox Margin="8,8,8,0" |
73 | 43 | Background="{DynamicResource Brush.Contents}" |
74 | 44 | ItemsSource="{Binding VisibleLocks}" |
75 | 45 | SelectionMode="Single" |
|
130 | 100 | HorizontalAlignment="Center" VerticalAlignment="Center" |
131 | 101 | IsVisible="{Binding IsLoading}"/> |
132 | 102 | </Grid> |
| 103 | + |
| 104 | + <!-- Filter and Unlock All --> |
| 105 | + <Grid Grid.Row="2" ColumnDefinitions="*,Auto" Margin="8,6"> |
| 106 | + <CheckBox Grid.Column="0" |
| 107 | + Content="{DynamicResource Text.GitLFS.Locks.OnlyMine}" |
| 108 | + IsChecked="{Binding ShowOnlyMyLocks, Mode=TwoWay}" |
| 109 | + VerticalAlignment="Center"> |
| 110 | + <CheckBox.IsEnabled> |
| 111 | + <MultiBinding Converter="{x:Static BoolConverters.And}"> |
| 112 | + <Binding Path="HasValidUserName" /> |
| 113 | + <Binding Path="!IsLoading" /> |
| 114 | + </MultiBinding> |
| 115 | + </CheckBox.IsEnabled> |
| 116 | + </CheckBox> |
| 117 | + |
| 118 | + <Button Grid.Column="1" |
| 119 | + Classes="flat primary" |
| 120 | + Content="{DynamicResource Text.GitLFS.Locks.UnlockAllMyLocks}" |
| 121 | + Click="OnUnlockAllMyLocksButtonClicked"> |
| 122 | + <Button.IsEnabled> |
| 123 | + <MultiBinding Converter="{x:Static BoolConverters.And}"> |
| 124 | + <Binding Path="HasValidUserName" /> |
| 125 | + <Binding Path="!IsLoading" /> |
| 126 | + </MultiBinding> |
| 127 | + </Button.IsEnabled> |
| 128 | + </Button> |
| 129 | + </Grid> |
133 | 130 | </Grid> |
134 | 131 | </v:ChromelessWindow> |
0 commit comments