mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
ux: set Focusable
by XAML instead of hard coded
This commit is contained in:
parent
ea3a6a4755
commit
8a20a7a542
2 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,6 @@ namespace SourceGit.Views
|
|||
|
||||
public ChangeCollectionView()
|
||||
{
|
||||
Focusable = true;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
<!-- Unstaged Changes -->
|
||||
<v:ChangeCollectionView Grid.Row="1"
|
||||
x:Name="UnstagedChangesView"
|
||||
Focusable="True"
|
||||
IsUnstagedChange="True"
|
||||
SelectionMode="Multiple"
|
||||
Background="{DynamicResource Brush.Contents}"
|
||||
|
@ -100,6 +101,7 @@
|
|||
<!-- Staged Changes -->
|
||||
<v:ChangeCollectionView Grid.Row="3"
|
||||
x:Name="StagedChangesView"
|
||||
Focusable="True"
|
||||
SelectionMode="Multiple"
|
||||
Background="{DynamicResource Brush.Contents}"
|
||||
ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode}"
|
||||
|
|
Loading…
Reference in a new issue