question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Popup's placement propery is wrong

See original GitHub issue
  • .NET Core Version: 3.0, 3.1, 5.0
  • Windows version: (winver) 20H2 (19042.985)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

**Problem description: Popups in WPF show’s in wrong place, when set to left the popup shows at right, set to right shows at left, set to up shows at top-right (which should shows at top-left) and set to bottom shows at bottom-right (which should shows at bottom-left).

Actual behavior: image

Expected behavior: image

Minimal repro:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
MichaeIDietrichcommented, Jun 12, 2021

As far as I know the popup open direction depends on whether the PC is set to left handed or right handed. For a long time there was a link in the control panel called Tablet PC Settings for setting this option, but it was removed in some Windows 10 update for an unknown reason. You can still open the dialog by using the run dialog (Win + R) and entering shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}. You can find the option in the second tab there.

By the way not all applications or frameworks honor this option.

2reactions
MichaeIDietrichcommented, Jun 15, 2021

@yanshouwang I guess the idea behind this is, that if you have a touch display and open a popup with the index finger of your right hand, then it should open to the left, else the popup would open right beneath your right hand and so it would be covered and you would need to move your hand before you can see the popup content. And vice versa with the left hand.

This means if you want the “normal” popup open direction, you need to choose the left handed setting here. As far as I can tell the right handed option is only set by default for PCs that have a touch display or a stylus display. That’s why this behavior does not occur on every PC. (or it might depend on vendor setup)

Read more comments on GitHub >

github_iconTop Results From Across the Web

wpf - Why is my Popup showing opposite the Placement ...
I fixed this issue by adding a border in the same grid col/row as the desired placement target. Then set this as the...
Read more >
Popup with placement mode as relative renders in wrong ...
Hi Team, WPF Popup with placement mode as relative renders in wrong position on some machines. As per the behavior it must be...
Read more >
Popup Placement Behavior - WPF .NET Framework
All of the Popup controls have the PlacementTarget property set to image1 , but each Popup has a different value for the placement...
Read more >
Popups: 10 Problematic Trends and Alternatives
2. Whether the background is dimmed: If the background is dimmed, the popup is called a lightbox. There is no special name for...
Read more >
Incorrect popup location when zooming in
Then watching the view's scale and resetting the popup's location property using the popup's selectedFeature property.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found