Skip to content

A simple Win32 application that can show WinUI3 elements

License

Notifications You must be signed in to change notification settings

smourier/Win32ShowsWinUI3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Win32ShowsWinUI3

A simple Win32 C++ desktop application that can show WinUI3 elements

This is a regular Win32 desktop application which knows nothing about WinUI3, it's main message loop is completely standard. Click on "Show WinUI3 Window menu item" to add WinUI3 content to it:

Screenshot 2024-11-23 152526

This is what we'll see, the Click button is a WinUI3 button, using DesktopWindowXamlSource to connect to a C# .NET 8 WinUI3 component library:

Screenshot 2024-11-23 152510

Click on it and a WinUI3 ContentDialog is shown:

Screenshot 2024-11-23 152547

Note there's a way to keep Win32 style (XAML style not initialized) like this:

Screenshot 2024-11-23 152608

About

A simple Win32 application that can show WinUI3 elements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages