WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

The window can't be dragged if a ContentDialog is opened

Open MGGSK opened this issue 1 year ago • 4 comments

Which version of the app?

WinUI 3 Gallery

Description

Steps to reproduce the bug:

  1. Open the ContentDialog sample.
  2. Click the "Show dialog" button
  3. Try to drag the window

Screenshots

Image

Windows version

Windows 11 24H2 (26052)

Additional context

This issue is probably caused by the content dialog background blocking the title bar.

MGGSK avatar Dec 12 '24 19:12 MGGSK

I wonder if this this can be repro'd with System TitleBar, since WinUI Gallery currently uses a fully custom "user control" titlebar. Hopefully this will resolve once we switch to the new TitleBar control.

karkarl avatar Dec 19 '24 16:12 karkarl

Isn't that actually meant to be like this?

foxypiratecove37350 avatar Jan 08 '25 20:01 foxypiratecove37350

Isn't that actually meant to be like this?

I think that it isn't meant to be like this because the TitleBar control in WindowsAppSDK 1.7 will fix this issue.

MGGSK avatar Jan 09 '25 15:01 MGGSK

Isn't that actually meant to be like this?

I think that it isn't meant to be like this because the TitleBar control in WindowsAppSDK 1.7 will fix this issue.

Well, for me it seem obvious that a modal/dialog window should block interacting with the parent window unless a specific setting/attribute/argument, as MessageBoxes do.

I think preventing from dragging the parent window is normal, but allowing it with an attribute in the XAML could be a good thing too.

foxypiratecove37350 avatar Jan 13 '25 17:01 foxypiratecove37350

Yeah, this is by design. Dialogs tend to block any other interaction of the window.

niels9001 avatar Aug 20 '25 08:08 niels9001