locked
load all images from folder WinRT

    Question

  • Hi 
    I am new in Windows development , I am making a small APP ,
    I am having a trouble in understanding , that how to load all images from the folder (Assets folder), or how to calculate  number of images present in a folder (Assets folder) , 

    Thanks in advance
    Tuesday, August 05, 2014 10:17 AM

Answers

  • var imagesFolder = await Package.Current.InstalledLocation.GetFolderAsync("Assets"); var files = await imagesFolder.GetFilesAsync();

    var count = files.Count;


    Tuesday, August 05, 2014 10:43 AM

All replies

  • var imagesFolder = await Package.Current.InstalledLocation.GetFolderAsync("Assets"); var files = await imagesFolder.GetFilesAsync();

    var count = files.Count;


    Tuesday, August 05, 2014 10:43 AM
  • var imagesFolder = await Package.Current.InstalledLocation.GetFolderAsync("Assets"); var files = await imagesFolder.GetFilesAsync();

    var count = files.Count;


    Thanks a lot :)
    Tuesday, August 05, 2014 11:24 AM