I have implemented a View Page that take photos and displaying them in a ListView.
To Upload the Photo to a web api, I'm storing the Path of Photos in a List filesPath.
Each time a photo taken, a file Path is added to the List filesPath.
I was be able to upload all photo by iterate to the filesPath list and upload each photo. This is done in code behind of the View.
Now, I'm trying to implement MVVM and have the ViewModel to handle the uploading task. Doing so, I would need to be able to access the ListfilesPath in the View from the ViewModel.
How would I be able to do that?
Also, Is this the right approach?