enhance: add a opened tabs selector popup (#958)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-02-10 20:06:44 +08:00
parent e757e63bf7
commit 0c8179b934
No known key found for this signature in database
5 changed files with 249 additions and 2 deletions

View file

@ -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;