Photo Editor is a UWP photo viewing and editing sample that highlights development with C++/WinRT.
Branch: master
Clone or download
Latest commit cdcde9f Feb 4, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
PhotoEditor Updated sample for latest SDK Oct 2, 2018
.gitattributes Initial release Jun 8, 2018
.gitignore Initial release Jun 8, 2018 Initial release Jun 8, 2018 Initial release Jun 8, 2018
PhotoEditor.sln Initial release Jun 8, 2018 metadata update Feb 5, 2019

topic languages products statusNotificationTargets

Photo Editor C++/WinRT sample application

The Photo Editor application is a Universal Windows Platform (UWP) sample that showcases development with the C++/WinRT language projection. The sample application allows you to retrieve photos from the Pictures library, and then edit the selected image with assorted photo effects. In the sample's source code, you'll see a number of common practices—such as data binding, and asynchronous actions and operations—performed using the C++/WinRT projection.

PhotoEditor sample showing the image collection page, editing page, and editing controls


Photo Editor primarily demonstrates:


This sample requires:

To get the latest updates to Windows and the development tools, and to help shape their development, join the Windows Insider Program.

Running the sample

The default project is PhotoEditor and you can Start Debugging (F5) or Start Without Debugging (Ctrl+F5) to try it out, just make sure to set the platform target appropriately. The app will run in the emulator or on physical devices.

Code at a glance

If you're just interested in code snippets for certain areas, and don't want to browse or run the full sample, check out the following files.

A custom runtime class that represents a photo.

The first page that loads the photos from the Pictures Library and displays a tiled thumbnail view.

Tapping a photo from the MainPage thumbnail view will take you to the photo editor page, where Win2D effects are toggled, set, and chained together.

Related C++/WinRT documentation and blogs.

Related XAML documentation and code samples.

External libraries used in this sample