I need to create custom toggle button using C# code. Please refer below snap, it should act like a toggle button.
-
First link in google: developer.xamarin.com/guides/android/user_interface/…Stephu– Stephu2016-09-29 09:55:11 +00:00Commented Sep 29, 2016 at 9:55
-
are you using Xaml? have you tried triggers?hrishikesh Deshpande– hrishikesh Deshpande2016-09-29 09:55:11 +00:00Commented 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# codesumeet– sumeet2016-09-29 10:09:53 +00:00Commented Sep 29, 2016 at 10:09
-
i am using C# Code designsumeet– sumeet2016-09-29 10:15:20 +00:00Commented Sep 29, 2016 at 10:15
-
Did you find any difficulty in implementation, you unaccepted ?Himanshu Dwivedi– Himanshu Dwivedi2016-09-30 10:21:32 +00:00Commented Sep 30, 2016 at 10:21
|
Show 2 more comments
2 Answers
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.
Comments
Take a look at SegmentedButtonGroup in FreshEssentials. It looks like that is what you need.
1 Comment
sumeet
need to create custom segmented button without using plugin
