0

I need to create custom toggle button using C# code. Please refer below snap, it should act like a toggle button.

enter image description here

7
  • First link in google: developer.xamarin.com/guides/android/user_interface/… Commented Sep 29, 2016 at 9:55
  • are you using Xaml? have you tried triggers? Commented Sep 29, 2016 at 9:55
  • this is only android i need to use this toggle button in ios , android , windows app using xamarin.forms by using c# code Commented Sep 29, 2016 at 10:09
  • i am using C# Code design Commented Sep 29, 2016 at 10:15
  • Did you find any difficulty in implementation, you unaccepted ? Commented Sep 30, 2016 at 10:21

2 Answers 2

2

If you don't want to use the plugin, you need to perform custom rendering. https://github.com/chrispellett/Xamarin-Forms-SegmentedControl

The above github repository has the source code for custom rendering for segmented button in andorid and ios only not for windows.

Sign up to request clarification or add additional context in comments.

Comments

1

Take a look at SegmentedButtonGroup in FreshEssentials. It looks like that is what you need.

http://www.michaelridland.com/xamarin/freshessentials-for-xamarin-forms-the-must-have-nuget-for-forms/

1 Comment

need to create custom segmented button without using plugin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.