stormlion227 / PhotoBrowser.Forms

Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures.
MIT License
76 stars 47 forks source link

MMVM Use #5

Open muhammetsahin opened 6 years ago

muhammetsahin commented 6 years ago

Hi,

How can I use mvvm design pattern (like prism.forms)?

Thanks.

candidodmv commented 5 years ago

Hi @muhammetsahin I also use MVVM pattern and think an approach that can be used is: create an page that will contain a list of all images(gallery) and when touch in any of them you instance PhotoBrowser passing the list of your gallery(converted to required type (Photo))and define the index that image was touched, so you don't need implement MVVM pattern on viewer directly, but your gallery page(that use MVVM pattern) will does. I hope that helps you.

LUISWAKASUGUI commented 5 years ago

Boa noite Candido. Qual o padrão de fotos que devo utilizar no PhotoBrowser para que a biblioteca consiga exibir a imagem.

LUISWAKASUGUI commented 5 years ago

Tentei uma imagem jpg com 800x600 e 24 bits mas ele não aparece nada. O link esta correto pois ja testei no browser.

candidodmv commented 5 years ago

@LUISWAKASUGUI share your code here(if it's possible) that will be more easy to help you. Because I think that, there's no limite to size of image, because of feature like "pinch to zoom". Do you have aready checkout if the file format is right, because the code sample are using "jpg" format, so any other formats, must be validated, if is supported before to use.