-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Added a right click context menu to the horizontal tab control #2363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ol right click context menu.
Looks good 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a new tab at the end of the tab row right?
Would be nice if it added the new tab right next to the clicked tab
That would be a nice enhancement, do you have any ideas how we can find out which tab was right clicked on? |
@yaichenbaum The following should do the job private async void NewTabMenuItem_Click(object sender, RoutedEventArgs e)
{
var tabItem = ((FrameworkElement)sender).DataContext as TabItem;
var index = MainPage.AppInstances.IndexOf(tabItem);
await MainPage.AddNewTabByPathAsync(typeof(ModernShellPage), "NewTab".GetLocalized(), index + 1);
} !EDIT!
|
Added the option to move a tab to new a window
@gave92 I removed the part that inserts the tab next to the one that was right clicked. This should solve the issue while we continue to look for a better solution. |
Part of #260.