Checkboxes in Xamarin.Forms - xamarin

I’m trying to make a page in my app where a user selects from a list of choices, then presses done to submit what he has selected. I’m using Xamarin.Forms. I directly thought of using checkboxes to achieve this; but apparently Xamarin.Forms doesn’t have checkboxes . Anyone have any suggestions to achieve this?
Thanks!

If I understand you correctly you don't seem to be looking for a radiobutton but more for something like a checkbox.
I've used this package: https://github.com/messier16/Forms.Controls to use checkboxes
Make sure to call Messier16Controls.InitAll(); right after Xamarin.Forms.Init(); in your projects. Look a tht AppDelegate.cs code snippet from the sample app:
global::Xamarin.Forms.Forms.Init();
Messier16Controls.InitAll();

If you want radio buttons you can xlabs their package (https://github.com/XLabs/Xamarin-Forms-Labs/tree/master/src/Forms/XLabs.Forms/Controls/RadioButton)
I'd just use a picker, Xlabs package hasn't been updated in a while so their might be some bugs in the radiobutton

You can use XLabs as suggested by below answer or you can create you own radio buttons with image and set selected and un-selected images on tap of image
i prefer to use my own radio buttons

Related

Xamarin.Forms on button click open popup with list of items

I have a button on command i need to load list from api an show in a popup. After that i need to choose one item from the list. Any suggestion how to import this? Similar like on the image!
You can use Rg.Plugins.Popup , which allows you to create custom popups as per your requirement.
Please refer: https://github.com/rotorgames/Rg.Plugins.Popup

Xamarin master detail page with static header and context menu

I need to do a master detail layout page in Xamarin which then will be used in child pages.
Please check the screenshot below:
I need to have a header part with button for notifications and a button for context menu plus a header.
What is the best approach how I can create this layout in Xamarin?
I will assume that you want to use Xamarin.Forms, instead of using Xamarin.Android and Xamarin.iOS separately.
One approach would be to use default MasterDetailPage as described here or even better to try it with Shell as described here.
Then, you would need to create your CustomNavigationPage and write a custom renderer for it.
Second approach would be to do some tricks, again creating your CustomNavigationPage with template(so that the navigation bar is always displayed) and that you change content dynamically.
Also, you would need to hide default navigation bar and attach click events to your menu button to really open up the menu.
Hope you got it clearly.
MasterDetailPage already provides nearly all functionality that you have asked for, so in some way your question isn't quite clear as you already mention MasterDetailPage. The only remaining problem I can see is how to set up a custom header, and that is than with NavigationPage.TitleView.

Add a custom button in the Tabbar in Xamarin Forms

Is there any way to add a custom button in the tabbar of Xamarin.Forms, like it's seeable on the mock below?
Thanks in advance.
Cue.
You can use relative layout to add the tabs in Xaml,
If you need any coding help let me know I'll help you to design this layout.
I came across this question while looking into implementing a very similar tab bar. There is one other option I've found to do this without writing those hefty custom renders yourself. Check out Sharpnado. It provides a variety of possible customizations for a Xamarin.Forms tab bar.
There is also a blog post on implementing a few options, complete with sample code you can clone.

Selection option in Alert Box (Titanium Appcelerator)

How to add select options in Aler Dialog as shown below using Titanium Appcelerator?
I checked the documentation in this link, but there is no much reference.
is it possible in Titanium?
i think at present titanium does have the feature you shown in image....
but we can create view which looks like alert view and show....
those button shown in link are general alerts

How can I get Google Places API to work with a select/drop-down menu instead of radio buttons?

Currently I am using the regular radio button markup for the PlacesAPI but I would really like to use a drop down menu instead. Can someone give me any pointers as to how to get this working?
I have tried using the onChange event with a select tag but have not been able to get it working.
Thanks.
How about using Autocomplete?

Resources