Garage: Photos App sample and controls

The Garage is back to share the Photos App -- a sample application with reusable sample controls for use with the Microsoft Surface 2.0 Software Development Kit (SDK), It's more goodness for the Microsoft PixelSense community. This seemingly straightforward application packs some important design and engineering innovations that make it easy for people to walk right up to a Samsung SUR40 with Microsoft PixelSense, insert USB removable media, and immediately share their photos with friends, colleagues and customers. This sample application can be readily deployed and completely customized with the included code sample and reusable controls -- it is provided as-is, and is not supported. Click here to download Photos App by Garage.


Image: Photos App by Garage

Included Photos App sample controls

This sample application includes several reusable sample controlsthat developers can use to make their own applications even better:

  • Dockable ScatterView | Flick content to the side of the screen for later, have it intelligently organize itself
  • Just-in-time Chrome | Touch a piece of content to display information about it, let the text fade away when done
  • Background file copy | Move files from removable media to the device
  • Background removable media monitoring | Let your app know when new content is available
  • Background loading of pictures into ScatterViews | Take content from removable media and import into Microsoft Surface ScatterView content containers

Installing Photos App

This sample applications does not come with its own installer.Copy the .zip file contents to a folder that all users will have access to (e.g.: C:\SurfaceApps\). Right-click on the PhotosApp\Release\PhotosApp.xml file and Create Shortcut. Copy that shortcut file to C:\ProgramData\Microsoft\Surface\Programs\ and then use the Surface Configuration Utility to add the application to Launcher.

Using removable USB media with Photos App

The Photos App has the ability to display photos from an external USB storage device. All you have to do is create a directory on the USB drive called \PhotosApp\Content\ and put your photos in there. Launch the Photos Apps and insert the removable USB drive into your Samsung SUR40. The photos will replace the existing contents of the Photos Apps directory and will persist until another removable USB device with new content is inserted and copied over. If you want to disable the ability to copy photos from removable media change the content in the application directory on the hard drive \PhotosApp\Content\ to read-only. This will prevent the file system from overwriting the original files with new pictures and effectively block users from sharing their photos on the device.

About Garage

Garage is a community of Microsoft employees that are passionate about Microsoft PixelSense, Samsung SUR40, computer vision, and natural user interface (NUI) technologies. Last year TechCrunch reporter Devin Coldewey visited the Surface Garage wrote a great article that gives a little more background on the group: "Microsoft’s Surface Garage: A Cross-Department Development Team, With Pizza And Beer." One of the group's goals is to contribute helpful code samples and demos to the greater PixelSense development community. This work is done by enthusiastic employees in their off-hours. The nature of these projects creates code which is outside the scope of a standard product release; but, as samples they can be valuable to the community.

Feedback

The Garage team would appreciate feedback on the usefulness of this sample application and controls for developers. Feedback will help frame future contributions from Garage. Options include releasing more samples in an agile format similar to this one, which puts more work on the developer to figure out how to put things together. Or, they can do a slower contribution cadence with more polished source code, but fewer posts. Since the Surface Garage is really looking to help the PixelSense development community, they'd really like to know what you think. Please post your thoughts and comments below.

PhotosApp.zip