Skip to content
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

MoveWindowWithSolitaryTabs issue #264

Open
dcembala opened this issue Sep 16, 2021 · 0 comments
Open

MoveWindowWithSolitaryTabs issue #264

dcembala opened this issue Sep 16, 2021 · 0 comments

Comments

@dcembala
Copy link

dcembala commented Sep 16, 2021

I have a problem involving moving window with tab. In my app I have one tab that is fixed (FixedHeaderCount=1). User can add/remove aditional tabs. I dont want tabs to be dragable so i set InterTabController = null but doing so causes an issue when user tryies to frag fixed tab whole window is being dragged. This is caused by MoveWindowWithSolitaryTabs being placed on InterTabController. This feature I beliewe is controlled in:
private bool ShouldDragWindow(DragablzItemsControl sourceOfDragItemsControl)
{
return (Items.Count == 1
&& (InterTabController == null || InterTabController.MoveWindowWithSolitaryTabs)
&& !Layout.IsContainedWithinBranch(sourceOfDragItemsControl));
}
I think it might be better to change InterTabController == null || => InterTabController != null && or to move MoveWindowWithSolitaryTabs component so InterTabController wouldnt be necesary to disable window drag. Or maybe there is other way to disable window drag I'm not aware of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant