Plugin.ModalPage

Push a modal page with transparency on top of current page.


Keywords
modal, page, xamarin, forms, ios, android, monotouch, monodroid
Install
Install-Package Plugin.ModalPage -Version 1.0.0

Documentation

ModalPage Plugin for Xamarin Forms

Setup

Platform Support

Platform Supported Version Renderer
Xamarin.iOS Unified Yes iOS 8.1+ UIViewController
Xamarin.Android Yes API 15+ AlertDialog

Usage

Push a custom modal:

var view = new MyModalView();
CrossModalPage.Current.PushCustomModal(view); // ContentView as parameter

Pop a custom modal:

CrossModalPage.Current.PopCustomModal();

Known issues

  • You have to provide HeighRequest for elements like Label, Entry ... I still need to figure it out how to propagate request layout down to each children.

  • If you are worried about label height you can use this gist: ITextMeter

  • Horizontal StackLayout doesn't works. Why? No idea :) You may use a multi-column Grid instead.

Contributors

Thanks!

License

Licensed under repo license