File Open Picker

Arbitrary apps can be listed within the Windows file picker as a place from which files can be chosen, on both PC and phone. Apps do this by declaring themselves as a target for the File Open Picker contract. This section examines what it means to be a File Open Picker target. Code throughout this book has already demonstrated what it means to be a File Open Picker source (using the FileOpenPicker class).

If you add File Open Picker to the list of declarations in your package manifest and deploy your app, your app then appears as a choice in the file picker whenever it is invoked for opening a file, as shown in Figure 21.8 on a PC. In the package manifest designer, you can specify whether your app should only appear for certain ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.