Skip to content

Instantly share code, notes, and snippets.

@Codercise
Created September 25, 2013 00:10
Show Gist options
  • Save Codercise/6693139 to your computer and use it in GitHub Desktop.
Save Codercise/6693139 to your computer and use it in GitHub Desktop.
var pathList;
var pathArray = [];
function getPictureItems() {
var picturesLibrary = Windows.Storage.KnownFolders.picturesLibrary;
var ffWacom = function (items) {
items.forEach(function (item) {
pathArray.push({
name: item.fileName,
path: item.path
});
}),
pathList = new WinJS.Binding.List(pathArray);
//console.log(pathArray[3].path);
console.log(pathList);
};
picturesLibrary.getItemsAsync().then(ffWacom);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment