Does anyone have idea about creating switch like this.? - xamarin

I would like to create a switch similar to this in xamarin forms. Anybody, please provide me with an idea.

This is called Segmented Control in Xamarin.Forms. To create this we need to add Plugin.SegmentedControl.Netstandard nuget packages. This looks same in android & iOS projects.
In your xaml file prefix this controll as control:SegmentedControl. For more information visit Segmented Control In Xamarin.Forms
.

Related

Why can't I add a class file as a Forms in my Xamarin project?

I created a new class project in shared-code platform to use a module for Prism. I am trying to add a new xaml file with a code behind but it's not letting me add it as an option. How can I add the missing Forms tab on the side menu on my project?
When creating a standard library, it usually doesn't come with Xamarin Forms, make sure you have Xamarin Forms added in your dependencies.

custom gallery from user phone

I want to be able to show the user images from his phone gallery, and pick one or more, the images should be displayed in 2 or more columns according to the user choice.
I looked for some plugins, and didn't find one that solves that problem.
Is that possible using conventional Android/iOS functionality?
If not, I could build a custom gallery for the user, but the question is- how do I get all the gallery names (Video/Camera/Screenshots) etc.) and file paths?
Tried to look in nativescript-imagepicker, but it doesn't seem to give me that functionality. Any help would be appriciated
If you like to customise the layout then you got to build one from scratch. You would have to use the native apis, MediaStore on Android / PhotoKit on iOS to read available image list and wrap them on your own layout.

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.

Xamarin Forms Dropdown Menu

I am new to Xamarin and I was wondering if it is possible in Xamarin Forms to create a menu similar to this:
.
It looks like you are trying to do a SlideOver menu which I would suggest using SlideOverKit
They support some nice menu options which you can adapt with and is easily implementable by using their nuget package.
Yes. It is possible. I recommend you have a look at Custom renderers. They enable you to do whatever the executing platform is capable of. Note that depending on what you need there may be plenty of platform knowledge that is needed.
I would suggest using SyncFusion component called DataGrid. SyncFusion has many great components for Xamarin forms. They also have a community license were you can get all components for free if you are qualified.
you can use this list in your custom master detail or menu component.

Timepicker control?

Is there an easy way to make a number picker for windows phone 7 that looks like a timepicker control? I want go have custom ranges of 0-99 : 0-59 . 0-9 while keeping the native windows phone look. Google, bing, and msdn seem to be very vague with information on the subject.
I found an article that describes exactly what I want to do here. My problem is that the article is old and if I type toolkit: in my XAML code, no suggestion comes up for a loopingselector. If I go into my toolbox, right click, choose items. There are no controls for a loopingselector or infinite list selector.
The source code also doesn't work.
I am kind of at a loss on what to do here.
I am using Visual Studio 2010 / c#4.0.
The easiest way is to add a reference to the recent August WP7 Silverlight Toolkit release to your project using NuGet and then add the following namespace reference to the top of your xaml
<phone:PhoneApplicationPage
...
xmlns:toolkitPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"
/>
You should then be able to use code like this:
<toolkitPrimitives:LoopingSelector ... />
Make sure that you are using the right namespace. LoopingSelector is in Microsoft.Phone.Controls.Primitives namespace. So your xmlns should be something like:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"

Resources