Skip to content

Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures.

License

Notifications You must be signed in to change notification settings

stormlion227/PhotoBrowser.Forms

Repository files navigation

PhotoBrowser.Forms

Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures.

NuGet

Supports Android and iOS.

Features

  • Pinch to zoom.
  • Swipe to dismiss.
  • Custom Title.
  • Custom Action Button.

Screen-Shots

PhotoBrowser for Android PhotoBrowser for iOS

Setup

  • Install the nuget package in portable and all platform specific projects.

Android

In MainActivity.cs file

    Stormlion.PhotoBrowser.Droid.Platform.Init(this);

iOS

In AppDelegate.cs file

    Stormlion.PhotoBrowser.iOS.Platform.Init();

Usage

    new PhotoBrowser
    {
        Photos = new List<Photo>
        {
            new Photo
            {
                URL = "https://raw.githubusercontent.com/stfalcon-studio/FrescoImageViewer/v.0.5.0/images/posters/Vincent.jpg",
                Title = "Vincent"
            },
            new Photo
            {
                URL = "https://raw.githubusercontent.com/stfalcon-studio/FrescoImageViewer/v.0.5.0/images/posters/Jules.jpg",
                Title = "Jules"
            },
            new Photo
            {
                URL = "https://raw.githubusercontent.com/stfalcon-studio/FrescoImageViewer/v.0.5.0/images/posters/Korben.jpg",
                Title = "Korben"
            }
        },
        ActionButtonPressed = (index) =>
        {
            Debug.WriteLine($"Clicked {index}");
        },
		
		BackgroundColor = Color.White,
		DidDisplayPhoto = (index) =>
		{
			Debug.WriteLine($"Selection changed: {index}");
		},

		Android_ContainerPaddingPx = 20,
		iOS_ZoomPhotosToFill = false		
    }.Show();

More Properties

  • ActionButtonPressed
  • StartIndex

Contributions

Contributions are welcome!

About

Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages