[Open XML] Open Packaging Convention can do more than just office documents
In a previous demonstration at TechDays in Paris in February 2008, I showed a demonstration that use the Open Packaging Convention to build a custom file format : a photo album. So I haven't share it yet, so this is it ! I know that I can use a PresentationML (PPTx 2007) to do it, but I chose to build my own custom file format (you know, developer love to make things harder :p).
Here are the sources.
Once this simple custom file format was defined, I made a "photo album generator" (using System.IO.Packaging API) that make my custom file. The file embed the photo album description with the images to display in order of appearance.
Then I build a WPF "photo album reader" with the cool Mitsu 's WPF Flip Page Control :
This slide explain the simple concept and structure :
Here's a step by step :
I used the serialization mechanism to create and read the <Diaporama> structure :
Find the sources of this demonstration HERE. Enjoy !
Ce post vous a plu ? Ajoutez le dans vos favoris pour ne pas perdre de temps à le retrouver le jour où vous en aurez besoin :