WinUI 3 ContentDialog declaration in xaml as Flyout does
This issue has been moved from a ticket on Developer Community.
WinUI 3 ContentDialog declaration in xaml as Flyout does.
My suggestion is that the developer can create a Customize ContentDialog in the XAML code as Flyout does. So it will enhance the way a developer can use a ContentDialog in a MVVM context as Flyout does. The properties(dependency properties) in the ContentDialog would be bind to ViewModel properties. The result of the dialog (ContentDialogResult) can be bind to another ViewModel property.
My goal is to have the simplicity of the Flyout that can be declared and use from XAML code but in the ContenteDialog context. As I know the ContentDialog needs to create a new control and figure out how to give the XamlRoot. I think that kind of steps can be assign automatically from a XAML declaration.
Or another way would be that the Flyout can have a modal dialog behavior that the user cannot go to another control before the modal dialog would be closed. Right now, as I know the Flyout is a lightweight contextual popup window that will be close for any common action outside the flyout.
Original Comments
Feedback Bot on 6/3/2024, 07:59 PM:
(private comment, text removed)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Closed similar issues:
- Discussion: MVVM-friendly ContentDialog (#4439), similarity score: 0.72
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Duplicate of #4439