Notepads: [Bug]Cannot drag and move the window, if there is an modal of tips to save the change when you click close

Created on 11 Sep 2020  路  5Comments  路  Source: JasonStein/Notepads

Describe the bug
Cannot move the window, if there is an modal of tips to save the change. If the modal is not visible, you can only use the escape key to close the modal box, and then drag and move the window, then close the windows and click "Discard & Exit".

To Reproduce
Just open notepads and type some word, then click close.

Expected behavior
The window should can be dragged as another UWP app like "Paint 3D" when it exists a modal.

Screenshots
(a 10M gif screenshots, playback in browser may be slow)
Screenshots.gif

Desktop:

  • OS: Windows 10 2004 19041.487
  • Version v1.4.2.0

Additional context
This issue may like #678

bug

Most helpful comment

Notepads uses the ContentDialogcontrol to show popups like "Discard & Exit". The ContentDialog is a modal dialog, whence why you can't drag and move the main window. On the other hand, it's interesting how Paint3D have what it looks like a modeless ContentDialog. There is also a relevant issue on the WinUI repo.

A question: would be enough for your scenario to have a kind of light dismiss behavior so that when you click on the title bar to drag and move the main window, it will automatically close any popup? I think this might be easier to implement in the meantime until a non-modal ContentDialog or similar control is available.

All 5 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Notepads uses the ContentDialogcontrol to show popups like "Discard & Exit". The ContentDialog is a modal dialog, whence why you can't drag and move the main window. On the other hand, it's interesting how Paint3D have what it looks like a modeless ContentDialog. There is also a relevant issue on the WinUI repo.

A question: would be enough for your scenario to have a kind of light dismiss behavior so that when you click on the title bar to drag and move the main window, it will automatically close any popup? I think this might be easier to implement in the meantime until a non-modal ContentDialog or similar control is available.

A question: would be enough for your scenario to have a kind of light dismiss behavior so that when you click on the title bar to drag and move the main window, it will automatically close any popup? I think this might be easier to implement in the meantime until a non-modal ContentDialog or similar control is available.

The dismiss behavior is acceptable, although it is not as intuitive as moving directly. Of course, it would be nicer if it can move directly.

This issue (the same as #701) is not the same as light dismissing. This is definitely something that should be brought up with WinUI. @AHBICJ @Kuuchuu could one of you make an issue there?

Btw, this area is still draggable and you can try:
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaellewiswilson picture michaellewiswilson  路  3Comments

vishnureddys picture vishnureddys  路  5Comments

MC-Guan picture MC-Guan  路  4Comments

subodhpareek18 picture subodhpareek18  路  3Comments

IslandRhythms picture IslandRhythms  路  6Comments