void CreateSegmentedControlWithFullWidthStripeDown(float y) { var segmentedControl = new HMSegmentedControl(new List<string> { "JUKE", "Most Popular", "All", "Bookmarked" }); segmentedControl.Font = UIFont.FromName("STHeitiSC-Light", 18.0f); segmentedControl.Frame = new RectangleF(0, y, View.Frame.Width, 40); segmentedControl.SegmentEdgeInset = new UIEdgeInsets(0, 10, 0, 10); segmentedControl.SelectionStyle = HMSegmentedControlSelectionStyle.FullWidthStripe; segmentedControl.SelectionIndicatorLocation = HMSegmentedControlIndicatorLocation.Down; segmentedControl.SelectionIndicatorColor = UIColor.Yellow; segmentedControl.TextColor = UIColor.White; segmentedControl.SelectedTextColor = UIColor.Yellow; View.AddSubview(segmentedControl); }
void CreateSegmentedControlWithFullWidthStripeUp(float y) { var segmentedControl = new HMSegmentedControl(new List <string> { "JUKE", "Most Popular", "All", "Bookmarked" }); segmentedControl.Font = UIFont.FromName("STHeitiSC-Light", 18.0f); segmentedControl.Frame = new CGRect(0, y, View.Frame.Width, 40); segmentedControl.SegmentEdgeInset = new UIEdgeInsets(0, 10, 0, 10); segmentedControl.SelectionStyle = HMSegmentedControlSelectionStyle.FullWidthStripe; segmentedControl.SelectionIndicatorLocation = HMSegmentedControlIndicatorLocation.Up; segmentedControl.SelectionIndicatorColor = UIColor.Yellow; segmentedControl.TextColor = UIColor.White; segmentedControl.SelectedTextColor = UIColor.Yellow; View.AddSubview(segmentedControl); }