Skip to content

About

A simple Win32 native (C++) application that can show WinUI3 (C#) elements

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

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 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 native (C++) application that can show WinUI3 (C#) elements

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages