dotnet / dotnet/wpf

Popup is closed while selecting date from the DatePicker

Open
#4,183 18 comments 0 reactions 0 assignees View on GitHub
.NET Framework
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* Have you experienced this same bug with .NET Framework?:
4.6 Framework

**Problem description:**

I have created the WPF project. I have added the date picker inside the pop up and added combo box in another popup. I have set popup.staysopen to false for both popup. Now Im clicking the date picker and calendar is opened in outside the window. When I click the date from calendar which is in outside the region(As like below image), the popup closed.

![IssueRepro](https://user-images.githubusercontent.com/63052528/108179507-b3dbf000-712b-11eb-8995-beb51b28e24d.gif)

Meanwhile this issue not happens in the combo box.

**Expected behavior:**

Popup should not closed when focus is in the date picker.

**Minimal repro:**
Run the sample
Click the Date Picker Button
Select the date as I mentioned in the problem description
Pop will closed.

Please find sample below
[Sample.zip](https://github.com/dotnet/winforms/files/5994466/Sample.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.