Skip to content

jamal/winui3-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinUI 3 Samples using CMake and C++

Sample project showing how to use WinUI 3 with CMake and C++ without depending on XAML or MIDL. The project relies on the C++/WinRT projections of the Windows APIs. This example shows the usage of some basic controls (StackPanel, Button, TextBlock), event handling and animations.

screenshot

Setup

Requirements

  1. Visual Studio with C++ build tools
  2. NuGet CLI
  3. CMake

Building

The project is built through CMake and should work with any modern C++ compiler, but I've only tested this with MSVC. This project is configured for C++23, but the minimum requirement is C++17 for C++/WinRT.

$ cmake -B build -S .
$ cmake --build build

References

  1. thebrowsercompany/windows-samples
  2. sotanakamura/winui3-command-line
  3. sonatakamura/winui3-without-xaml
  4. sonatakamura/winui3-without-midl
  5. driver1998/WinUI-MinGW

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors