microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.72k stars 307 forks source link

Please provide a modern API for MessageDialog or Messagebox #4469

Open Gaoyifei1011 opened 3 weeks ago

Gaoyifei1011 commented 3 weeks ago

Describe the bug

Please provide a modern API for MessageDialog or Messagebox 请提供一个现代化的 MessageDialog 或 Messagebox 的 API

At present, the appearance of MessageDialog API and Messagebox API in Windows 11 does not meet the Design principles of Fluent Design in Windows 11. We want to provide a MessageDialog in the Windows App SDK that conforms to the Design principles of Windows 11 Fluent Design, which is displayed as a modal window. This window can be displayed in two forms, either a modal window similar to the previous MessageDialog that displays a blocking current window, or a full-screen MessageDialog similar to Recall 目前 Windows 11 自带的 MessageDialog API 和 Messagebox API 的外观已经不符合 Windows 11 Fluent Design 的设计原则,希望能在 Windows App SDK 中提供一个符合 Windows 11 Fluent Design 的设计原则的 MessageDialog,该窗口以模态窗口显示。该窗口该窗口可以以两种形态显示,一种类似于之前的 MessageDialog 显示一个阻塞当前窗口的模态窗口,另一种就是类似于 Recall 的全屏 MessageDialog

Steps to reproduce the bug

See describe

Expected behavior

Please provide a modern API for MessageDialog or Messagebox 请提供一个现代化的 MessageDialog 或 Messagebox 的 API

Screenshots

系统老式的 MessageDialog 或 Messagebox,已经不符合 Windows 11 fluent design 的设计原则 The system's older MessageDialog or Messagebox does not comply with the design principles of Windows 11 fluent design 8a9d7d77b7773fe5553c8da515e3f6b3

Modernized Messagedialog, screenshots from from Recall (preview) 现代化的 Messagedialog,截图来自于来自于回顾(预览版) image

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

None