#if __IOS__
var segmentControl = new UISegmentedControl();
segmentControl.Frame = new CGRect(20, 20, 280, 40);
segmentControl.InsertSegment("One", 0, false);
segmentControl.InsertSegment("Two", 1, false);
segmentControl.SelectedSegment = 1;
segmentControl.ValueChanged += async (sender, e) =>
{
var selectedSegmentId = (sender as UISegmentedControl).SelectedSegment;
await MainPage.DisplayAlert($"Native Segmented Control Clicked {selectedSegmentId}",
"Whoa!!!!!!", "OK");
};
stack.Children.Add(segmentControl);
pageLayout.Children.Insert(0, stack);
#endif
#if __ANDROID__
using Xamarin.Forms.Platform.Android;
using MyProject.Droid;
using Android.Views;
using Android.Support.Design.Widget;
using Android.Util;
using Clans.Fab;
#endif
..
..
#if __ANDROID__
// ...
Clans.Fab.FloatingActionButton fabSend;
Clans.Fab.FloatingActionButton fabDelete;
FloatingActionMenu fam = new FloatingActionMenu(Forms.Context,
#endif