The window can't be dragged if a ContentDialog is opened
Which version of the app?
WinUI 3 Gallery
Description
Steps to reproduce the bug:
- Open the ContentDialog sample.
- Click the "Show dialog" button
- Try to drag the window
Screenshots
Windows version
Windows 11 24H2 (26052)
Additional context
This issue is probably caused by the content dialog background blocking the title bar.
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.
Isn't that actually meant to be like this?
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.
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.
Yeah, this is by design. Dialogs tend to block any other interaction of the window.