Closed dr1rrb closed 4 months ago
! doesn't mean modal :-) ! equates to dialog -> If you view is a page it will be rendered in a Flyout which will auto dismiss -> If you want modal change the base type of your page to ContentDialog
! equates to dialog
Well IMHO dialog means "modal view with buttons at the bottom" (i.e. user should not be able to dismiss it).
Dialog controls are modal UI overlays that provide contextual app information. They block interactions with the app window until being explicitly dismissed. They often request some kind of action from the user. Dialog controls (Windows doc)
Probably just a documentation issue, but apparently users are seeing the !
as modal (cf. title of this issue https://github.com/unoplatform/uno/issues/12928)
BTW, followed the doc on the MS site, found this interesting https://learn.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/
Dialogs and flyouts display transient UI elements that appear when the user requests them or when something happens that requires notification or approval.
Perhaps we should update docs - the ! means modal, not necessary dialog.
cc @lukeblevins can we make the suggested updates to the docs
Any action that remove focus from the application dismisses the page on Windows. See below by just resizing the window or clicking somewhere out of the app:
@nickrandolph / @dr1rrb / @eriklimakc (cc @lukeblevins) What is the status of this issue please? Still only missing some proper documentation or is there another issue here?
Current behavior
If you navigate to a page using the modal navigation (
!
), when you alt+tab the page is being dismissed automatically on Windows.Expected behavior
For me a "modal" nav should even prevent user to dismiss the page, the page should not close itself.
How to reproduce it (as minimally and precisely as possible)
Navigate to a page using the
!
like in this repro (from https://github.com/unoplatform/uno/issues/12871)Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
The fact it works on other platform that are using uno is a bug https://github.com/unoplatform/uno/issues/12928