dotnet / dotnet/wpf

Known issus: Popup with “StaysOpen=false” steals PreviewMouseDown event

Open
#2,166 2 comments 5 reactions 0 assignees View on GitHub
Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

When we set the Popup with `StaysOpen=false` that will steals the PreviewMouseDown and LeftMouseButtonDown etc event. And this is a known issus. Do we plan to break this behavior? I think it is difficult to understand.

Behavior:

We click the button to open the popup, and then we click a checkbox. We can find the popup close and the checkbox be checked but the PreviewMouseDown event in checkbox will not fire.

![Popup with “StaysOpen=false” steals PreviewMouseDown event](https://user-images.githubusercontent.com/16054566/68441363-d5e88200-0208-11ea-8292-2a96851e1dae.gif)

Link: https://stackoverflow.com/questions/29889620/popup-with-staysopen-false-steals-leftmousebuttondown-event

The demo: https://github.com/lindexi/lindexi_gd/tree/46e813ad18655df1653e1fb9de6c238f91171443/NayfarwehelaFebeejochar

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.