© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
2 replies
Dusty

ContentDialog Window using WinUI 3

Hey, how can I create a standalone window that looks like the ConentDialog control?

I've attached examples from different places in Windows 11 where it's used. For instance the Microsoft Store uses it when installing an app, the Windows Firewall utilizes it and even the UAC Prompt.

TL;DR:
I want to create a window that functions as a dialog and looks similar to the ContentDialog control and the attached images.
The window should be able to adjust its content via startup arguments and return the user's decision (Yes or No) as the exit code.
image.png
FsEQvYoWIAE5J2-.png
User-Account-Control-Windows-11.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How to close window in WinUI 3
C#CC# / help
4y ago
❔ WindowsAppSDK (WinUI 3) shutdown app before window is shown?
C#CC# / help
4y ago
✅ How do I move a Window in WinUI 3 C#?
C#CC# / help
4y ago
Winui 3 titlebar problems
C#CC# / help
3y ago