mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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()
|
public ChangeCollectionView()
|
||||||
{
|
{
|
||||||
Focusable = true;
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
<!-- Unstaged Changes -->
|
<!-- Unstaged Changes -->
|
||||||
<v:ChangeCollectionView Grid.Row="1"
|
<v:ChangeCollectionView Grid.Row="1"
|
||||||
x:Name="UnstagedChangesView"
|
x:Name="UnstagedChangesView"
|
||||||
|
Focusable="True"
|
||||||
IsUnstagedChange="True"
|
IsUnstagedChange="True"
|
||||||
SelectionMode="Multiple"
|
SelectionMode="Multiple"
|
||||||
Background="{DynamicResource Brush.Contents}"
|
Background="{DynamicResource Brush.Contents}"
|
||||||
|
@ -100,6 +101,7 @@
|
||||||
<!-- Staged Changes -->
|
<!-- Staged Changes -->
|
||||||
<v:ChangeCollectionView Grid.Row="3"
|
<v:ChangeCollectionView Grid.Row="3"
|
||||||
x:Name="StagedChangesView"
|
x:Name="StagedChangesView"
|
||||||
|
Focusable="True"
|
||||||
SelectionMode="Multiple"
|
SelectionMode="Multiple"
|
||||||
Background="{DynamicResource Brush.Contents}"
|
Background="{DynamicResource Brush.Contents}"
|
||||||
ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode}"
|
ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode}"
|
||||||
|
|
Loading…
Reference in a new issue