dotnet / dotnet/wpf

Tooltip closes immediatly when shown on controls with control templates with negative margin

Open
#6,710 6 comments 3 reactions 1 assignee Claimed by @singhashish-wpf View on GitHub
area-Tooltip Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: SDK: 6.0.300 Runtime 6.0.5
* Windows version: 10.0.19044
* Does the bug reproduce also in WPF for .NET Framework 4.8?: No

**Problem description:**
when you define a control template for a control with a negative margin to have a control that is exceeding its parent the tooltip is not shown correctly in the margin area.

in the following example, the control itself is colored in Aqua and the negative margin in blue to visualize the areas. the dummy project is also attached for testing purpose

behavior with 4.8:
![behaviorWithNet48](https://user-images.githubusercontent.com/18416393/175008060-7edf1bcd-360e-44f9-896e-709164d7ac61.gif)

behavior with net6.0:
![behaviorWithNet6](https://user-images.githubusercontent.com/18416393/175008073-c094204e-5397-4dd0-b413-91262467126c.gif)

DummyProject:
[DisappearingTooltipWithNegativeMargin.zip](https://github.com/dotnet/wpf/files/8956776/DisappearingTooltipWithNegativeMargin.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.