microsoft / microsoft/WindowsAppSDK
Modal dialog please Help
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
### Discussed in https://github.com/microsoft/WindowsAppSDK/discussions/2603
Originally posted by **jcarnalich** June 9, 2022
Hello,
we are a company from software development. We have programs made in **MFC/C++** with thousands of customers.
We want to migrate our products from **MFC/C++** to **WinUI 3**.
>
The main problem is that we use many modal dialogs. Many times from a modal dialog opens another modal dialog, and another... (see screenshot):

I have two questions:
>
**1° plans Windows to do this type of modal dialogs in the future?
2° Is it possible to make modal dialogs from other modal dialogs with the current version of winui ?**
>
we have tried to do the following without success:
>
a) **Contentdialog/Flyout**. It's ok but you can't open another Contentdialog/Flyout from a Contentdialog/Flyout.
b) Do it manually with **UIElement.GotFocus** Event.
c) **Windowing**. AppWindowPresenterKind.CompactOverlay. It's ok but you can't open another Window (modal with CompactOverlay) from a Window.
d) WinUI Extensions : **WinUIEx**. (It's based also in Windowing) It's ok but you can't open another WinUIEx from one WinUIEx.
e) Do it manually with **Canvas**, ManipulationMode="TranslateX, TranslateY, TranslateInertia", Visibility.Collapsed/Visible, IsHitTestVisible?
>
Could you please help us?
Thanks in advance!
Best regards
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the linked discussion 2603 and the issue's attempted approaches: ContentDialog/Flyout, Windowing, WinUIEx, and Canvas. No source files or tests are named; done would require a maintainer-confirmed answer about nested modal dialogs in current WinUI 3 and any future support plans.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100