Xamarin Forms take or pick multiple Photos, attach on App-Page and include the option to delete a Photo out of this List

Tobias Panster 21 Reputation points
2022-05-03T08:17:43.647+00:00

Hello.
I´m quite new to App programming. I want to write an App (with Xamarin Forms) where you are able to choose several Photos (or Files in general) out of the Galery, or take the Photo with the Camera.

This Photo should be attached inside the App-Page with only the Filename (it is not necessary to stream the Picture), so if you pick multiple, then there should be a kind of list.

If there is a picture picked wrong you always have to have the option to delete it out of this List.

Does somebody of you has an Idea to get this into code? xD

Thank you for your support!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,381 Reputation points Microsoft Vendor
    2022-05-04T06:19:48.59+00:00

    Hello,

    I want to write an App (with Xamarin Forms) where you are able to choose several Photos (or Files in general) out of the Galery, or take the Photo with the Camera

    Usually, we could use DependencyService to access native APIs for picking a photo from the picture library. In iOS, you could use UIImagePickerController or PhotoKit. In android, you could define the Intent for getting images.
    In addition, you could search for the video titled Pick Multiple Images and Videos with This Xamarin.Forms Library by Gerald Versluis.

    This Photo should be attached inside the App-Page with only the Filename

    When you get the photos list, you could use CollectionView and set the list of filenames as ItemsSource, then display the filename. Sample here: https://learn.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/userinterface-collectionviewdemos/

    If there is a picture picked wrong you always have to have the option to delete it out of this List.

    You could use SwipeView and delete the item by a swipe gesture. Sample here: https://learn.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/userinterface-swipeviewdemos/

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful