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

TabControl get wrong DropInfo index on empty tabcontrol space #396

Open
DZL87 opened this issue Sep 14, 2021 · 0 comments
Open

TabControl get wrong DropInfo index on empty tabcontrol space #396

DZL87 opened this issue Sep 14, 2021 · 0 comments
Labels

Comments

@DZL87
Copy link

DZL87 commented Sep 14, 2021

Describe the bug
When dragging overTabControl empty space, it makes DropInfo.IsertIndex = 0, instead of DropInfo.InsertIndex = itemsControl.Items.Count, like in ListBox for example.

Why this code is needed?
DropInfo.cs, line 56:
if (this.VisualTarget is TabControl)
{
if (!HitTestUtilities.HitTest4Type(this.VisualTarget, this.DropPosition))
{
return;
}
}

It works different than in ListBox.
Is there a reasonable case for it?

To Reproduce
Steps to reproduce the behavior:

  1. Drag tabItem out from tab header to empty tabControl space.

Expected behavior
Draw nearest border of TabControl instead of most left border of first tab.

@DZL87 DZL87 added the Bug label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant