public Segmented_Control_Practical_Work() { //этот StackLayout нужен для отображения переключателей view_segmenteds = new StackLayout(); //этот StackLayout нужен для вывода содержимого view_frames = new StackLayout(); var grades_Segment = new SegmentedControlOption() { Text = "Оценки", }; var answer_Segment_Two = new SegmentedControlOption() { Text = "Ответы" }; tab_Control = new SegmentedControl.FormsPlugin.Abstractions.SegmentedControl { TintColor = Color.White, SelectedTextColor = Color.Black, BackgroundColor = Color.FromHex("#293991"), Children = { grades_Segment, answer_Segment_Two } }; tab_Control.ValueChanged += Handle_ValueChanged; view_segmenteds.Children.Add(tab_Control); view_segmenteds.Children.Add(view_frames); Padding = 1; HasShadow = false; BackgroundColor = Color.FromHex("#293991"); Content = new StackLayout { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, Children = { view_segmenteds } }; }
public Segmented_Control_Grading_Participant() { view_segmenteds = new StackLayout(); view_frames = new StackLayout(); var answer_Segment_Two = new SegmentedControlOption() { Text = "Ответ", }; var grades_Segment = new SegmentedControlOption() { Text = "Оценка", }; tab_Control = new SegmentedControl.FormsPlugin.Abstractions.SegmentedControl { TintColor = Color.White, SelectedTextColor = Color.Black, BackgroundColor = Color.FromHex("#293991"), Children = { answer_Segment_Two, grades_Segment } }; tab_Control.ValueChanged += Handle_ValueChanged; view_segmenteds.Children.Add(tab_Control); view_segmenteds.Children.Add(view_frames); Padding = 1; HasShadow = false; BackgroundColor = Color.FromHex("#293991"); Content = new StackLayout { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, Children = { view_segmenteds } }; }