how do i add a photo from a gallery to a collectionview project?

first, keep a reference to your VM

    VM ViewModel;

    public MainPage()
        BindingContext = ViewModel = new VM();

then, when you add the picture, do NOT create a new VM instance

var page = new VM();

instead, use the instance of the VM your page is already bound to


CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top