See my blog for detailed info on this sample: https://stefanwick.com/
You will need the following setup to run this project:
- Windows 10 build 17134 or later
- Windows SDK build 17134
- Visual Studio 2017 Update 5 or later
Open the solution from the Sketch-a-Window folder, set "Package" project as startup project and select x86 or x64 as architecture.
Or install the sample from the Microsoft Store: https://www.microsoft.com/store/productId/9NNMBR5MH63W
Style for WPF custom close button taken from https://blog.magnusmontin.net/2013/03/16/how-to-create-a-custom-window-in-wpf/