-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Dragging Tabs between TabView can result in clipped Tab display with Drag animation #2670
Comments
I've done some initial poking at this, the ListView doesn't seem to be firing any events during the drag where it indicates that it size changes for the animation which is very strange. I'm going to have to dig deeper and see if I can create a repro with just a ListView in a Grid Row/Column that exhibits this behavior. |
The clipping is related to the StackPanel in the ItemsPanelTemplate in TabView.xaml. The StackPanel doesn't use full width, but is as wide as the tab headers in it. It seems the drop listener is attached to the stackpanel. In the attached screenshot you can see that dropping next to an existing tab is not possible. You can only drop by releasing the dragged tab onto an existing tab.
|
Thanks for the additional info @FrankVanDeVen, I think we probably need our own custom panel to handle these scenarios better. One that can have the padding behavior built-in (which would solve the drop-target issues as well. |
This issue seems inactive. Do you need help to complete this issue? |
1 similar comment
This issue seems inactive. Do you need help to complete this issue? |
This issue seems inactive. It will automatically be closed in 14 days if there is no activity. |
@michael-hawker Why is it that setting an ItemsStackPanel as the ItemsPanelTemplate currently causes a problem? |
Closing this as WinUI already supports TabView control and will be removing this from the Windows Community Toolkit in 7.0 release. |
I'm submitting a...
Current behavior
If you have two TabViews and drag between them, the space made for the new item in the 2nd TabView pushes the last tab off and it gets clipped rather than expanding the TabView header area.
Expected behavior
TabView area should expand to show all tabs and new spot for dragged tab.
Minimal reproduction of the problem with instructions
Environment
The text was updated successfully, but these errors were encountered: