amwx / FluentAvalonia

Control library focused on fluent design and bringing more WinUI controls into Avalonia
MIT License
1.05k stars 97 forks source link

TabView tabs reorder and drop don't work properly in Avalonia 11.2.0 #622

Open manfromarce opened 2 weeks ago

manfromarce commented 2 weeks ago

Describe the bug When updating to Avalonia 11.2.0 TabView tabs can't be reordered or dropped from another window back to the original window. In some cases an exception is also thrown: 'Method not found: 'Void Avalonia.Controls.Primitives.IPopupHost.ConfigurePosition(Avalonia.Visual, Avalonia.Controls.PlacementMode, Avalonia.Point, Avalonia.Controls.Primitives.PopupPositioning.PopupAnchor, Avalonia.Controls.Primitives.PopupPositioning.PopupGravity, Avalonia.Controls.Primitives.PopupPositioning.PopupPositionerConstraintAdjustment, System.Nullable1)'.'` This can be reproduced with any TabView where CanReorderTabs=true; or when running the TabView windowing sample in the sample app a new window is always created if you try to reorder tabs, probably the hit test fails and TabDroppedOutsided is invoked.

Screenshots fluentavalonia_bugreport

Desktop/Platform (please complete the following information):

Additional context This bug is not present in Avalonia 11.1.4 and below, so they probably changed something in the core framework which broke drag and drop. I will try to investigate the cause and provide more information.