Custom pop up like a picker in Xamarin forms - xamarin.forms

I want to develop a custom popup that works exactly like a picker. The only difference I am looking out for is that I want a view or page to be in the popup content rather than the basic picker items.

Have you checked Rg.Plugins.Popup ?
https://github.com/rotorgames/Rg.Plugins.Popup
You can create your own pages and choose where and how they will popup. Animations ,click to close, timeout closing and many other features are supported.

Related

How to add context menu Xamarin.forms

I would like to create context menu in my project. On android it's called PopupMenu. On click of button, I have to show the popup with 3 rows and it's clickable event. How I can implement this in my code? Example of this menu here:
http://www.javatpoint.com/images/androidimages/popup2.png
The Xamarin.Forms way to handle this is to call DisplayActionSheet() on the Page.
It's not exactly a popup, but on the other hand it has better chances to be fully displayed and visible on screen if your view can scroll.

Nested getcmsfields_forpopup showing in same popup in silverstripe

I have form in getcmsfields_forpopup for backend(admin panel) in silverstrip. In that form, I have added nested dataobjectmanager field to enter multiple dates(has_many relation). When main form open in popup window and I click on add date link, then second popup form open in the same window not in separate one. That means after entering date data and saving it, when I click on close button, whole form is closed rather going back to main form. Please help in this regard.
This can't be done using SilverStripe's default popup form unless, maybe, you extended the DataObject Manager field and had it render itself in an iFrame.
The best option would be to manage your parent DataObjects with DataObjectManger as well. DataObjectManager supports nested DataObjectManager fields. See this tutorial "Nested DataObjectManager" (on YouTube).
If you're able, can I suggest that you try out SilverStripe 3.0? The support for this kind of thing is much better in SilverStripe 3.0 than it is in 2.4.

Customized UIPickerView , iOS

I am trying to make a UIButton for the user where he will be able to choose between 5 different options. I have in mind something like an one line UIButton where one option will be preselected and when the user presses the button the 5 options would be displayed for the user to choose. In the objects library the closest i can find to that is the picker view , but its too big for my screen and it displays all the options , as i only want one to be displayed in the beginning and when the user hits the button all the options so that he can pick a different one if he likes. Is there a UIButton like this on Xcode that i am missing or should i customize a picker view or something?
Thank you in advance for reading my post :D
You can customize picker view like following
http://code4app.net/ios/Customized-Picker-View/4f72e7446803faa901000002
But I suggest that you use custom view which contains custom table view
and that view is shown as like picker view,means all properties like size,animation,position etc
all are in your control
If you want to customize table view like that
then follow the link
http://code4app.net/ios/3D-Tableview/4fc0da756803fae46f000000

Forms as modal windows

i got a form and i want to show it as window dialog and able to submit it via dialog
how i do that? what module i need?
also, how can i make that i get unique class for each form element?
The Popups module is awesome for this.
You can easily target a page (with your form), and it puts the content of the page in the popup. It opens it similarly to a lightbox, but it does not open a new browser window.
Drupal has a module for modals.
As for the unique class names in your form, this article may be helpful.

Disable Ribbon Button

I want to disable and NOT hide a ribbon button (specifically Ribbon.ListItem.New.NewListItem) on a particular List type. On web I could find a lot many posts showing me ways to remove/hide buttons but none really worthwhile which could tell me how can I just disable an alrteady existing sharepoint button in my custom List type.
e.g. Following code does remove the button instead of hiding.
Id="RemoveRibbonButton"
RegistrationType="List"
RegistrationId="213908"
Location="CommandUI.Ribbon">
This can be done through Javascript on the client side. Check out this article for an example.
http://makarandrkulkarni.blogspot.com/2010/01/sharepoint-2010-ribbon-customization_23.html

Resources