Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin.Form How do i get the count of items from a folder? and the name of the items?

$
0
0

I have

Project 1 Default for the other platforms
Folder

  • Images
    • 1.jpg
    • 2.jpg

Project 2 Android
Folder

  • Images
    • 1.jpg
    • 2.jpg

Project 3 iOS
Folder

  • Images
    • 1.jpg
    • 2.jpg

PART 1

If i want to count the number of items in the Images folder
how do i do it?
Can i do it in the default, with embedded images
or do i need to do it with platform specific logic. if so how.

numbers of items: 2

PART 2
And when i can count the numbers of items in the folder, and how can i take out there names.

names
List list = new List();
foreach() {

list.add(x); // 1.jpg 2.jpg

}


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>