I have a button on the click of which I have to populate multiple images in a listview. I have seen some stackoverflow posts about the same but did not help. I want to populate images from my app local folder, and then set it as a source of my listview. Any sample of how to select multiple image files from the folder and adding it to the listview. Like for e.g.
var uri = new Windows.Foundation.Uri('ms-appx:///images/logo.png');
var file = Windows.Storage.StorageFile.getFileFromApplicationUriAsync(uri);`
this would help select one image stored in app folder, but how to loop through multiple images and add it in a listview.
Also in addition I have another grid added. When I select the image from my listview it should load in the grid. So on select event changed how should I grab the file path of the image or load the selected image in that grid.
Thanks In Advance.
You need to get a reference to the proper StorageFolder and then you can loop through the StorageFiles. You can create an object from the StorageFile. Since it doesn't sound like you're using MVVM, I'll show a quick code behind example.