Modal dialog please Help #2603
Replies: 2 comments
-
A way is to use the Window class, as it is possible now to create multiple windows on the same thread
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much! I have installed the latest version of SDK and your solution works now with windowing. It is a possible solution, but two questions please : 1° are there WinUI-Elements that allow me to do modal dialogs inside a window? I have done something similar to a modal dialog with Canvas und ContentControl (ManipulationStarted, ManipulationDelta, ManipulationCompleted, Tapped, PointerEntered, Visibility, IsHitTextVisible) Best regards |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions