GithubHelp home page GithubHelp logo

xam.plugin.popupmenu's Introduction

Xam.Plugin.PopupMenu

A simple popup menu for Xamarin Forms. This project is not supposed to be feature rich, it is simple a ready quick and lightweight implementation for when you need a menu displayed over a view.

Nuget

https://www.nuget.org/packages/Xam.Plugin.PopupMenu/

Images

alt text

Changelog

  • Version 1.1.0 -> Support binding via the ItemsSourceProperty
  • Version 1.0.0 -> Internal only (Don't use this one)

Donations

PayPal: [email protected] I can't thank you guys enough for the support on my other plugins!

Setup

iOS Only) Call the PopupEffect.Init method to make sure the linker picks this up correctly

  1. Create a new PopupMenu Object
  2. Either manually set the ItemsSource, or use SetBinding
  3. Call ShowPopup on the PopupMenu, passing in the root view you wish for the popup to inherit from
  4. Attach an event to OnItemSelected, this will return the PopupMenu and the selected string

iOS Specifics

  • At the moment, the cancel button text can be changed via the PopupEffect object in the iOS project
  • The direction of the popover on the iPad can be set in the PopupEffect object in the iOS project

Platform Support

Please note: I have only put in platforms I have tested myself.

  • Xamarin.iOS : iOS 8 +
  • Xamarin.Droid : API 14 +
  • Windows Phone/Store RT : 8.1 +
  • Windows UWP : 10 +
  • Xamarin Forms : 2.3.3.180

Feature Requests

DM me on LinkedIn: http://linkedin.radsrc.com

xam.plugin.popupmenu's People

Contributors

skln-rad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xam.plugin.popupmenu's Issues

Shadow around popup in android

The shadow around my popup somehow disappeared, I remember seeing this before, one of the constants in Resources.designer.cs changed which caused the shadow to disappear, but I can't remember which one it was. What controls the shadow?

Problem with your popupMenu

Hello, I'm a French developer and I need your plugin to create popupMenus.
I'd like popupMenu to open on the left when I click on the button, is that possible?
I don't know if it's possible, but if it's impossible with the plugin, do you have a solution for me?

Thank you very much!
Mathis

Issue when using the control in a Custom Rendered Page on iOS

Edit update:

Ok I was using Prism for navigation and there was an instance where I was navigating from contentpage>tabbedpage(contains navigationpage>contentpage) and this was failing as the RootViewController.ChildViewControllers was being garbage collected.

I changed this by removing the navigation from contentpage>tabbedpage to resetting the stack with tabbedpage.
Hope this helps somebody.

Problem :
When trying to use the popup control in a custom rendered ContentPage I get this issue.

2018-04-17 16:03:39.233 SampleDemo.iOS[41834:699857] Warning: Attempt to present <UIAlertController: 0x7f9e55b30600> on <Xamarin_Forms_Platform_iOS_PlatformRenderer: 0x7f9e52638340> whose view is not in the window hierarchy!

It looks like I cannot render it on top of a custom render already.
Can you confirm this is a drawback and if so is there any workaround.

Cause I really need the custom rendered page and your awesome menu control but this is going to be really tricky.

Thanks for all the help.

Issue with Listview

Hi,

I am trying to use this control with a listview item with a tapgesturerecognizer. Everything works great except it takes the same listview item (the first clicked) to set the popup regardless of the item (in listview) selected.

So whichever item in the list view I select, the popup comes under the first clicked listview item.

Please let me know how I can resolve this.

Thanks.

Show selected option

Can we show already selected option in this plugin?
e.g. If select option 1 first and then second time option that drop down, I should be able to see option is already selected

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.