mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-05 11:05:00 +00:00
enhance: add a opened tabs selector popup (#958)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
e757e63bf7
commit
0c8179b934
5 changed files with 249 additions and 2 deletions
|
@ -248,6 +248,15 @@ namespace SourceGit.Views
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OnGotoSelectedPage(object sender, LauncherTabSelectedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.Launcher vm)
|
||||
vm.ActivePage = e.Page;
|
||||
|
||||
PageSelector.Flyout?.Hide();
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private bool _pressedTab = false;
|
||||
private Point _pressedTabPosition = new Point();
|
||||
private bool _startDragTab = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue