microsoft / WinUI-Gallery

This app demonstrates the controls available in WinUI and the Fluent Design System.
MIT License
2.65k stars 612 forks source link

Showcasing the Use of `OverlappedPresenter.IsModal` for Improved User Experience #1551

Open Zakariathr22 opened 1 month ago

Zakariathr22 commented 1 month ago

Issue type

sample request

Which version of the app?

WinUI 3 Gallery

Description

This proposal suggests adding an example to the WinUI3 Gallery showcasing the IsModal property of the OverlappedPresenter class. This property allows developers to create modal windows within the same application, improving the user experience for specific scenarios.

A lot of developers try to solve issues by turning off the Content.IsTapEnabled setting in another window, or by using the ContentDialog control as a substitute. However, these methods may not be the best practices and can come with several limitations:

Therefore, it would be beneficial to add an example to the WinUI 3 Gallery that showcases how to use the OverlappedPresenter.IsModal property in the windowing part. This could be a great feature to add, as it allows a window to behave as a modal dialog, blocking input to other windows, which can be useful in creating more interactive and user-friendly applications.

Screenshots

No response

Windows version

No response

Additional context

No response