I've googled a bit but could not find a simple Image Viewer class to use in my MonoTouch app.
I don't need to show image thumbnails neither a complete photo album (with multiple photos).
I just need an image viewer to show an UIImageView, allowing the common fullscreen/zoom operations.
Obviously such viewer could be implemented using a UIViewController
subclass with UIGestureRecognizer
, UIScrollView
and UINavigationBar
trickery, but I don't want to reinvent the wheel. Does anyone know about an open source component available ?
It would also be useful to host such component in the new Xamarin Component Store
Thanks
To do this, open the Control Panel and go to Default Programs > Set Default Programs. Find Windows Photo Viewer in the list of programs, click it and choose Set this program as default. This will set the Windows Photo Viewer as the default program for all file types it can open by default.
You can open the Image Viewer app from the Apps tab, under Image Processing and Computer Vision. To bring image data into Image Viewer from a file name, select Open from the File menu.
Here it is.
Features:
UIScrollView
's ContentSize
property.Suggestions for future:
UINavigationBar
usage.UIView
's basic animation (fade in/out) when user opens/closes full screen image view.Some relative info:
Any bug reports and suggestions are welcome!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With