Exemple #1
0
        private void ControlPageContents(Android.Content.Context con)
        {
            List <string> sizeList = new List <string>();

            sizeList.Add("100%");
            sizeList.Add("125%");
            sizeList.Add("150% (Recommended)");
            sizeList.Add("175%");

            List <string> resolutionList = new List <string>();

            resolutionList.Add("1920 x 1080 (Recommended)");
            resolutionList.Add("1680 x 1050");
            resolutionList.Add("1600 x 900");
            resolutionList.Add("1440 x 900");
            resolutionList.Add("1400 x 1050");
            resolutionList.Add("1366 x 768");
            resolutionList.Add("1360 x 768");
            resolutionList.Add("1280 x 1024");
            resolutionList.Add("1280 x 960");
            resolutionList.Add("1280 x 720");
            resolutionList.Add("854 x 480");
            resolutionList.Add("800 x 480");
            resolutionList.Add("480 X 640");
            resolutionList.Add("480 x 320");
            resolutionList.Add("432 x 240");
            resolutionList.Add("360 X 640");
            resolutionList.Add("320 x 240");

            List <string> orientationList = new List <string>();

            orientationList.Add("Landscape");
            orientationList.Add("Portrait");
            orientationList.Add("Landscape (flipped)");
            orientationList.Add("Portrait (flipped)");

            sizeComboBox = new SfComboBox(con);
            sizeComboBox.LayoutParameters = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 45);
            sizeComboBox.Watermark        = "Search Here";
            sizeComboBox.GetAutoEditText().SetTextSize(ComplexUnitType.Sp, 16);
            sizeComboBox.Text       = "150% (Recommended)";
            sizeComboBox.DataSource = sizeList;


            resolutionComboBox = new SfComboBox(con);
            resolutionComboBox.MaximumDropDownHeight = 200;
            resolutionComboBox.LayoutParameters      = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 45);
            resolutionComboBox.Watermark             = "Search Here";
            resolutionComboBox.GetAutoEditText().SetTextSize(ComplexUnitType.Sp, 16);
            resolutionComboBox.Text       = "1920 x 1080 (Recommended)";
            resolutionComboBox.DataSource = resolutionList;


            orientationComboBox = new SfComboBox(con);
            orientationComboBox.LayoutParameters = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 45);
            orientationComboBox.Watermark        = "Search Here";
            orientationComboBox.GetAutoEditText().SetTextSize(ComplexUnitType.Sp, 16);
            orientationComboBox.Text       = "Landscape";
            orientationComboBox.DataSource = orientationList;
        }
 protected override void OnInitializeView(DataFormItem dataFormItem, SfComboBox view)
 {
     base.OnInitializeView(dataFormItem, view);
     view.IsEditableMode = true;
     view.Unfocused     += View_Unfocused;
     dropDownItem        = dataFormItem as DataFormDropDownItem;
 }
        private void SongComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            SfComboBox cmb = sender as SfComboBox;

            Model.Songs song = cmb.SelectedValue as Model.Songs;
            VM.SongId = song.Id;
        }
        public PopUp()
        {
            this.BackgroundColor = Color.Transparent;
            this.WidthRequest    = 200;
            this.HeightRequest   = 100;

            var layout = new StackLayout();

            layout.Padding           = new Thickness(50, 100);
            layout.BackgroundColor   = Color.Silver;
            layout.Orientation       = StackOrientation.Vertical;
            layout.HorizontalOptions = LayoutOptions.Center;
            layout.VerticalOptions   = LayoutOptions.Center;

            var label = new Label();

            label.Text            = "Enter Description:";
            label.FontSize        = 14;
            label.TextColor       = Color.Black;
            label.VerticalOptions = LayoutOptions.Center;

            editor                 = new Editor();
            editor.TextColor       = Color.Black;
            editor.VerticalOptions = LayoutOptions.Center;

            var label2 = new Label();

            label2.Text            = "select the Category:";
            label2.FontSize        = 14;
            label2.TextColor       = Color.Black;
            label2.VerticalOptions = LayoutOptions.Center;
            layout.Children.Add(label2);

            List <String> countryNames = new List <String>();

            countryNames.Add("Open");
            countryNames.Add("In Progress");
            countryNames.Add("Code Review");
            countryNames.Add("Done");

            comboBox = new SfComboBox();
            comboBox.HeightRequest   = 40;
            comboBox.BackgroundColor = Color.AliceBlue;
            comboBox.ComboBoxSource  = countryNames;
            layout.Children.Add(comboBox);

            var button = new Button();

            button.Text            = "OK";
            button.BackgroundColor = Color.Blue;
            button.VerticalOptions = LayoutOptions.Center;
            button.Clicked        += Button_Clicked;

            layout.Children.Add(label);
            layout.Children.Add(editor);
            layout.Children.Add(button);

            Content = layout;
        }
Exemple #5
0
        public Base_Data_Entry(Better_Choices_1.Home parent)
        {
            InitializeComponent();
            //ChildForm child_form = new ChildForm();
            // OnAppearing();

            nameEntry.Text      = string.Empty;
            combobox            = new SfComboBox();
            combobox.DataSource = App.Database.GetStashesNames();
            this._parent        = parent;
        }
        public List <int> GetMatchingIndexes(SfComboBox source, ComboBoxFilterInfo filterInfo)
        {
            List <int>      filteredlist = new List <int>();
            List <CityInfo> CityItems    = source.Items.OfType <CityInfo>().ToList();

            filteredlist.AddRange(from CityInfo item in CityItems
                                  where item.CountryName.StartsWith(filterInfo.Text, StringComparison.CurrentCultureIgnoreCase) ||
                                  item.CityName.StartsWith(filterInfo.Text, StringComparison.CurrentCultureIgnoreCase)
                                  select CityItems.IndexOf(item));
            return(filteredlist);
        }
        private async void AlbumComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            SfComboBox cmb = sender as SfComboBox;

            Model.Albums album = cmb.SelectedValue as Model.Albums;
            VM.AlbumId = album.Id;
            await VM.LoadSongs();

            SongComboBox.SelectedItem = null;
            SongComboBox.Text         = "";
        }
        private void AlbumComboBox_ValueChanged(object sender, Syncfusion.XForms.ComboBox.ValueChangedEventArgs e)
        {
            SfComboBox cmb = sender as SfComboBox;

            if (cmb.SelectedItem == null)
            {
                VM.NoResultsFoundText     = "No results found, click here to add album " + e.Value;
                SongComboBox.SelectedItem = null;
                SongComboBox.Text         = "";
                VM.SongList.Clear();
            }
            VM.AlbumName = e.Value;
        }
Exemple #9
0
        public Base_Data_Entry(Better_Choices_1.DataForms.StashView _stash_view_parent, Stash base_stash)
        {
            InitializeComponent();
            //ChildForm child_form = new ChildForm();
            // OnAppearing();

            nameEntry.Text          = string.Empty;
            combobox                = new SfComboBox();
            combobox.DataSource     = App.Database.GetStashesNames();
            this._stash_view_parent = _stash_view_parent;

            this.build_from_stash(base_stash);
        }
        public int GetHighlightIndex(SfComboBox source, ComboBoxSearchInfo searchInfo)
        {
            var filteredCapitals = from CityInfo cityInfo in searchInfo.FilteredItems
                                   where cityInfo.IsCapital
                                   select searchInfo.FilteredItems.IndexOf(cityInfo);

            if (filteredCapitals.Count() > 0)
            {
                return(filteredCapitals.FirstOrDefault());
            }

            return(0);
        }
 public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 {
     view = inflater.Inflate(Resource.Layout.dialog_new_grocery_layout, container, false);
     groceriesAutoComplete = view.FindViewById <SfAutoComplete>(Resource.Id.autoCompleteGrocery);
     categoriesComboBox    = view.FindViewById <SfComboBox>(Resource.Id.cmboBoxCategories);
     AutoCompleteInit();
     unitTextView        = view.FindViewById <TextView>(Resource.Id.txtUnitNewGroceryDialog);
     amountEditText      = view.FindViewById <EditText>(Resource.Id.editTxtAmountGrocery);
     okButton            = view.FindViewById <Button>(Resource.Id.btnOK);
     cancelButton        = view.FindViewById <Button>(Resource.Id.btnCancel);
     okButton.Click     += OkButton_Click;
     cancelButton.Click += CancelButton_Click;
     groceriesAutoComplete.TextChanged += GroceriesAutoComplete_TextChanged;
     return(view);
 }
 public FrequencySelector()
 {
     InitializeComponent();
     combobox            = new SfComboBox();
     combobox.DataSource = new List <String> {
         "Hours", "Days", "Weeks", "Months"
     };
     combobox.HorizontalOptions = Xamarin.Forms.LayoutOptions.StartAndExpand;
     this.nullcb();
     //combobox.WidthRequest = 115;
     combobox.VerticalOptions = Xamarin.Forms.LayoutOptions.Center;
     combobox.HeightRequest   = freq_num.Height;
     combobox.TextSize        = 6;
     combobox_holder.Children.Add(combobox);
     combobox.SelectionChanged += comboBox1_SelectedItemChanged;
     combobox.VerticalOptions   = Xamarin.Forms.LayoutOptions.Center;
 }
Exemple #13
0
        public List <int> GetMatchingIndexes(SfComboBox source, ComboBoxFilterInfo filterInfo)
        {
            List <int>      filteredlist = new List <int>();
            List <CityInfo> CityItems    = source.Items.OfType <CityInfo>().ToList();

            filteredlist.AddRange(from CityInfo item in CityItems
                                  let filterItem = this.GetStringFromMemberPath(item, "CountryName")
                                                   where filterItem.StartsWith(filterInfo.Text, StringComparison.CurrentCultureIgnoreCase)
                                                   select CityItems.IndexOf(item));

            filteredlist.AddRange(from CityInfo item in CityItems
                                  let filterItem                         = this.GetStringFromMemberPath(item, "CityName")
                                                               let index = CityItems.IndexOf(item)
                                                                           where filterItem.StartsWith(filterInfo.Text, StringComparison.CurrentCultureIgnoreCase) && !filteredlist.Contains(index)
                                                                           select CityItems.IndexOf(item));
            return(filteredlist);
        }
Exemple #14
0
        public Questionnaire_View(List <tmp_questionnaire> tmp_Questionnaire)
        {
            InitializeComponent();
            tmp_question = tmp_Questionnaire;
            int rownumber = 0;

            foreach (var questionnaire in tmp_Questionnaire)
            {
                var questionlabel = new Label
                {
                    Text              = questionnaire.question,
                    TextColor         = Color.Black,
                    FontSize          = 17,
                    FontFamily        = "VarelaRound-Regular.ttf#Open Sans",
                    VerticalOptions   = LayoutOptions.CenterAndExpand,
                    HorizontalOptions = LayoutOptions.StartAndExpand,
                };

                var combobox = new SfComboBox
                {
                    DataSource        = questionnaire.answers,
                    Text              = questionnaire.answer,
                    TextColor         = Color.Black,
                    TextSize          = 17,
                    FontFamily        = "VarelaRound-Regular.ttf#Open Sans",
                    VerticalOptions   = LayoutOptions.CenterAndExpand,
                    HorizontalOptions = LayoutOptions.StartAndExpand,
                    ShowBorder        = false,
                    ClassId           = questionnaire.id_question
                };
                Questionnaire_Grid.RowDefinitions.Add(new RowDefinition
                {
                    Height = 70
                });
                questionlabel.SetValue(Grid.RowProperty, rownumber);
                questionlabel.SetValue(Grid.ColumnProperty, 0);
                combobox.SetValue(Grid.RowProperty, rownumber);
                combobox.SetValue(Grid.ColumnProperty, 1);
                Questionnaire_Grid.Children.Add(questionlabel);
                Questionnaire_Grid.Children.Add(combobox);
                rownumber += 1;
            }
            Add_Button.SetValue(Grid.RowProperty, rownumber + 1);
        }
        protected override void OnAttachedTo(ContentPage bindable)
        {
            var page = bindable as Page;

            calendar           = page.FindByName <SfCalendar>("calendar");
            comboBox           = page.FindByName <SfComboBox>("comboBox");
            comboBox.Watermark = "Search Events";

            // To Display Inline appointment layout.
            calendar.ShowInlineEvents = true;
            //Inline ViewMode
            calendar.InlineViewMode = InlineViewMode.Agenda;
            var currentDay = DateTime.Now.Date;

            for (int i = 0; i < 40; i++)
            {
                calendarInlineEvents.Add(new CalendarInlineEvent()
                {
                    StartTime = currentDay.AddDays(i),
                    EndTime   = currentDay.AddDays(i),
                    Subject   = "Meeting on " + currentDay.AddDays(i).ToString("dd/MM/yy"),
                    Color     = Color.Fuchsia
                });

                calendarInlineEvents.Add(new CalendarInlineEvent()
                {
                    StartTime = currentDay.AddDays(i),
                    EndTime   = currentDay.AddDays(i),
                    Subject   = "Conference on " + currentDay.AddDays(i).ToString("dd/MM/yy"),
                    Color     = Color.DodgerBlue
                });
            }

            // Setting Datasource for calendar.
            calendar.DataSource = calendarInlineEvents;

            // Setting Data Source for combo box
            comboBox.DataSource = calendarInlineEvents;
            // Displaying Data in combo box based on subject
            comboBox.DisplayMemberPath = "Subject";
            comboBox.SelectionChanged += ComboBox_SelectionChanged;
            base.OnAttachedTo(bindable);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomHeaderUserControl"/>.
 /// </summary>
 /// <param name="comboBox">The comboBox control.</param>
 internal CustomHeaderUserControl(SfComboBox comboBox)
 {
     this.ListView       = comboBox.DropDownListView;
     TextBox             = new TextBox();
     TextBox.AutoSize    = false;
     TextBox.Anchor      = AnchorStyles.Left | AnchorStyles.Right;
     TextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.Controls.Add(TextBox);
     pictureBox.Image       = Image.FromFile(@"../../Icon/search_Colorful.png");
     this.TextBox.TextAlign = HorizontalAlignment.Left;
     this.TextBox.Margin    = new Padding(10, 0, 0, 0);
     this.TextBox.Controls.Add(pictureBox);
     TextBox.TextChanged      += OnTextBoxTextChanged;
     ListView.MouseDown       += OnDropDownListViewMouseDown;
     ListView.SizeChanged     += OnDropDownSizeChanged;
     comboBox.DropDownClosing += OnComboBoxDropDownClosing;
     ListView.VerticalScroll.ScrollBar.VisibleChanged += OnScrollBarVisibleChanged;
     ListView.View.Filter = FilterItem;
 }
 private void Init()
 {
     topToolbar              = FindViewById <Toolbar>(Resource.Id.toolbarTopGroceriesList);
     groceryListView         = FindViewById <ListView>(Resource.Id.listGroceries);
     categoriesComboBox      = FindViewById <SfComboBox>(Resource.Id.cmboBoxCategories);
     searchButton            = FindViewById <Button>(Resource.Id.btnSearchRecipe);
     searchButton.Click     += SearchButton_Click;
     eatButton               = FindViewById <Button>(Resource.Id.btnEat);
     eatButton.Click        += EatButton_ClickAsync;
     searchView              = FindViewById <SearchView>(Resource.Id.searchGroceries);
     groceriesFAB            = FindViewById <FloatingActionButton>(Resource.Id.fABgroceries);
     groceriesFAB.Visibility = ViewStates.Invisible;
     if (ChamberOfSecrets.Instance.LoggedUser.UserStatus == Status.Nabavljac ||
         ChamberOfSecrets.Instance.LoggedUser.UserStatus == Status.Administrator || ChamberOfSecrets.Instance.LoggedUser.UserStatus == Status.Supervizor)
     {
         groceriesFAB.Visibility = ViewStates.Visible;
         groceriesFAB.Click     += GroceriesFAB_Click;
     }
     InitCategories();
     SetDefault();
 }
        public ComboBox_Mobile()
        {
            mainPageDesign();
            //sizeComboBox
            sizeComboBox = new SfComboBox();
            sizeComboBox.ComboBoxSource       = sizeDetails;
            sizeComboBox.IsEditable           = false;
            sizeComboBox.Text                 = (NSString)"150%(Recommended)";
            sizeComboBox.SuggestionMode       = SuggestionMode.StartsWith;
            sizeComboBox.MaxDropDownHeight    = 160;
            sizeComboBox.ItemHeight           = 40;
            sizeComboBox.DropDownCornerRadius = 5;
            sizeComboBox.Watermark            = (NSString)"Search Here";

            //resolutionComboBox

            resolutionComboBox                      = new SfComboBox();
            resolutionComboBox.IsEditable           = false;
            resolutionComboBox.MaxDropDownHeight    = 160;
            resolutionComboBox.ItemHeight           = 40;
            resolutionComboBox.DropDownCornerRadius = 5;
            resolutionComboBox.Text                 = (NSString)"1920 x 1080 (Recommended)";
            resolutionComboBox.ComboBoxSource       = resolutionDetails;
            resolutionComboBox.SuggestionMode       = SuggestionMode.StartsWith;
            resolutionComboBox.Watermark            = (NSString)"Search Here";

            if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
            {
                this.controlView.AddSubview(sizeComboBox);
                this.controlView.AddSubview(resolutionComboBox);
                this.AddSubview(controlView);
            }
            else
            {
                this.AddSubview(sizeComboBox);
                this.AddSubview(resolutionComboBox);
            }

            loadOptionView();
        }
Exemple #19
0
        private void SfComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            SfComboBox sfComboBox = sender as SfComboBox;

            if (sfComboBox == this.sfComboBox1)
            {
                if (this.sfComboBox1.SelectedItem.ToString() == "Mexico")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl1[i, 1].Text = "Mexico";
                    }
                    this.gridControl1[1, 3].Text  = "10.1 Million";
                    this.gridControl1[2, 3].Text  = "25.3 Million";
                    this.gridControl1[3, 3].Text  = "100.1 Million";
                    this.gridControl1[4, 3].Text  = "1.2 Billion";
                    this.gridControl1[5, 3].Text  = "224.3 Million";
                    this.gridControl1[6, 3].Text  = "678 Million";
                    this.gridControl1[7, 3].Text  = "389.3 Million";
                    this.gridControl1[8, 3].Text  = "686.6 Million";
                    this.gridControl1[9, 3].Text  = "891.2 Million";
                    this.gridControl1[10, 3].Text = "719 Million";
                }
                if (this.sfComboBox1.SelectedItem.ToString() == "Canada")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl1[i, 1].Text = "Canada";
                    }
                    this.gridControl1[1, 3].Text  = "11.1 Million";
                    this.gridControl1[2, 3].Text  = "29.3 Million";
                    this.gridControl1[3, 3].Text  = "190.1 Million";
                    this.gridControl1[4, 3].Text  = "1.3 Billion";
                    this.gridControl1[5, 3].Text  = "194.3 Million";
                    this.gridControl1[6, 3].Text  = "456 Million";
                    this.gridControl1[7, 3].Text  = "569.3 Million";
                    this.gridControl1[8, 3].Text  = "676.6 Million";
                    this.gridControl1[9, 3].Text  = "861.2 Million";
                    this.gridControl1[10, 3].Text = "709 Million";
                }
                if (this.sfComboBox1.SelectedItem.ToString() == "Bermuda")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl1[i, 1].Text = "Bermuda";
                    }
                    this.gridControl1[1, 3].Text  = "17.1 Million";
                    this.gridControl1[2, 3].Text  = "28.3 Million";
                    this.gridControl1[3, 3].Text  = "150.1 Million";
                    this.gridControl1[4, 3].Text  = "1.1 Billion";
                    this.gridControl1[5, 3].Text  = "294.3 Million";
                    this.gridControl1[6, 3].Text  = "374 Million";
                    this.gridControl1[7, 3].Text  = "239.3 Million";
                    this.gridControl1[8, 3].Text  = "786.6 Million";
                    this.gridControl1[9, 3].Text  = "781.2 Million";
                    this.gridControl1[10, 3].Text = "711 Million";
                }
                this.treeViewAdv1.Nodes[0].Nodes[0].OpenImgIndex   = this.sfComboBox1.SelectedIndex;
                this.treeViewAdv1.Nodes[0].Nodes[0].ClosedImgIndex = this.sfComboBox1.SelectedIndex;
            }
            if (sfComboBox == this.sfComboBox2)
            {
                if (this.sfComboBox2.SelectedItem.ToString() == "Belize")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl2[i, 1].Text = "Belize";
                    }
                    this.gridControl2[1, 3].Text  = "17.1 Million";
                    this.gridControl2[2, 3].Text  = "28.3 Million";
                    this.gridControl2[3, 3].Text  = "150.1 Million";
                    this.gridControl2[4, 3].Text  = "1.1 Billion";
                    this.gridControl2[5, 3].Text  = "294.3 Million";
                    this.gridControl2[6, 3].Text  = "374 Million";
                    this.gridControl2[7, 3].Text  = "239.3 Million";
                    this.gridControl2[8, 3].Text  = "786.6 Million";
                    this.gridControl2[9, 3].Text  = "781.2 Million";
                    this.gridControl2[10, 3].Text = "711 Million";
                }
                if (this.sfComboBox2.SelectedItem.ToString() == "Panama")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl2[i, 1].Text = "Panama";
                    }
                    this.gridControl2[1, 3].Text  = "10.1 Million";
                    this.gridControl2[2, 3].Text  = "25.3 Million";
                    this.gridControl2[3, 3].Text  = "100.1 Million";
                    this.gridControl2[4, 3].Text  = "1.2 Billion";
                    this.gridControl2[5, 3].Text  = "224.3 Million";
                    this.gridControl2[6, 3].Text  = "678 Million";
                    this.gridControl2[7, 3].Text  = "389.3 Million";
                    this.gridControl2[8, 3].Text  = "686.6 Million";
                    this.gridControl2[9, 3].Text  = "891.2 Million";
                    this.gridControl2[10, 3].Text = "719 Million";
                }
                if (this.sfComboBox2.SelectedItem.ToString() == "Costa Rica")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl2[i, 1].Text = "Costa Rica";
                    }
                    this.gridControl2[1, 3].Text  = "11.1 Million";
                    this.gridControl2[2, 3].Text  = "29.3 Million";
                    this.gridControl2[3, 3].Text  = "190.1 Million";
                    this.gridControl2[4, 3].Text  = "1.3 Billion";
                    this.gridControl2[5, 3].Text  = "194.3 Million";
                    this.gridControl2[6, 3].Text  = "456 Million";
                    this.gridControl2[7, 3].Text  = "569.3 Million";
                    this.gridControl2[8, 3].Text  = "676.6 Million";
                    this.gridControl2[9, 3].Text  = "861.2 Million";
                    this.gridControl2[10, 3].Text = "709 Million";
                }
                int imageindex = this.sfComboBox2.SelectedIndex + 3;
                this.treeViewAdv1.Nodes[0].Nodes[1].OpenImgIndex   = imageindex;
                this.treeViewAdv1.Nodes[0].Nodes[1].ClosedImgIndex = imageindex;
            }
            if (sfComboBox == this.sfComboBox3)
            {
                if (this.sfComboBox3.SelectedItem.ToString() == "Brazil")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl3[i, 1].Text = "Brazil";
                    }
                    this.gridControl3[1, 3].Text  = "11.1 Million";
                    this.gridControl3[2, 3].Text  = "29.3 Million";
                    this.gridControl3[3, 3].Text  = "190.1 Million";
                    this.gridControl3[4, 3].Text  = "1.3 Billion";
                    this.gridControl3[5, 3].Text  = "194.3 Million";
                    this.gridControl3[6, 3].Text  = "456 Million";
                    this.gridControl3[7, 3].Text  = "569.3 Million";
                    this.gridControl3[8, 3].Text  = "676.6 Million";
                    this.gridControl3[9, 3].Text  = "861.2 Million";
                    this.gridControl3[10, 3].Text = "709 Million";
                }
                if (this.sfComboBox3.SelectedItem.ToString() == "Argentina")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl3[i, 1].Text = "Argentina";
                    }
                    this.gridControl3[1, 3].Text  = "17.1 Million";
                    this.gridControl3[2, 3].Text  = "28.3 Million";
                    this.gridControl3[3, 3].Text  = "150.1 Million";
                    this.gridControl3[4, 3].Text  = "1.1 Billion";
                    this.gridControl3[5, 3].Text  = "294.3 Million";
                    this.gridControl3[6, 3].Text  = "374 Million";
                    this.gridControl3[7, 3].Text  = "239.3 Million";
                    this.gridControl3[8, 3].Text  = "786.6 Million";
                    this.gridControl3[9, 3].Text  = "781.2 Million";
                    this.gridControl3[10, 3].Text = "711 Million";
                }
                if (this.sfComboBox3.SelectedItem.ToString() == "Colombia")
                {
                    for (int i = 0; i < 11; i++)
                    {
                        this.gridControl3[i, 1].Text = "Colombia";
                    }
                    this.gridControl3[1, 3].Text  = "10.1 Million";
                    this.gridControl3[2, 3].Text  = "25.3 Million";
                    this.gridControl3[3, 3].Text  = "100.1 Million";
                    this.gridControl3[4, 3].Text  = "1.2 Billion";
                    this.gridControl3[5, 3].Text  = "224.3 Million";
                    this.gridControl3[6, 3].Text  = "678 Million";
                    this.gridControl3[7, 3].Text  = "389.3 Million";
                    this.gridControl3[8, 3].Text  = "686.6 Million";
                    this.gridControl3[9, 3].Text  = "891.2 Million";
                    this.gridControl3[10, 3].Text = "719 Million";
                }
                int imageindex = this.sfComboBox3.SelectedIndex + 6;
                this.treeViewAdv1.Nodes[0].Nodes[2].OpenImgIndex   = imageindex;
                this.treeViewAdv1.Nodes[0].Nodes[2].ClosedImgIndex = imageindex;
            }
            this.treeViewAdv1.Refresh();
        }
Exemple #20
0
        protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex rowColumnIndex, SfComboBox uiElement)
        {
            base.OnInitializeEditElement(column, rowColumnIndex, uiElement);
            IEnumerable comboboxSource = (IEnumerable)uiElement.DataSource;
            var         comboboxlist   = comboboxSource.Cast <object>().ToList();

            int maxWidth = 0;
            int temp     = 0;

            foreach (var item in comboboxlist)
            {
                temp = TextRenderer.MeasureText(item.ToString(), uiElement.Font).Width;
                if (temp > maxWidth)
                {
                    maxWidth = temp;
                }
            }
            //set the combo box drop down width based on content contains in combo Box list
            uiElement.DropDownListView.ItemWidth = maxWidth;
        }
        public void mainPageDesign()
        {
            this.OptionView = new UIView();
            controlView     = new UIView();
            this.addingSourceList();
            isEditableSwitch         = new UISwitch();
            diacriticsSwitch         = new UISwitch();
            suggestionModePicker     = new UIPickerView();
            comboBoxModePicker       = new UIPickerView();
            sizePicker               = new UIPickerView();
            textColorPicker          = new UIPickerView();
            backColorPicker          = new UIPickerView();
            sizeDoneButton           = new UIButton();
            textColorDoneButton      = new UIButton();
            backColorDoneButton      = new UIButton();
            comboBoxModel            = new PickerModel(comboBoxModeList);
            comboBoxModePicker.Model = comboBoxModel;
            comboBoxModePicker.Select(1, 0, false);
            sizeModel        = new PickerModel(sizeList);
            sizePicker.Model = sizeModel;
            sizePicker.Select(2, 0, false);
            textColorModel        = new PickerModel(textColorList);
            textColorPicker.Model = textColorModel;
            textColorPicker.Select(0, 0, false);
            backColorModel        = new PickerModel(backColorList);
            backColorPicker.Model = backColorModel;
            backColorPicker.Select(0, 0, false);
            isEditableLabel     = new UILabel();
            diacriticModeLabel  = new UILabel();
            comboBoxModeLabel   = new UILabel();
            sizeLabel           = new UILabel();
            textColorLabel      = new UILabel();
            backColorLabel      = new UILabel();
            waterMarkLabel      = new UILabel();
            spaceLabel          = new UILabel();
            comboBoxButton      = new UIButton();
            sizeButton          = new UIButton();
            textColorButton     = new UIButton();
            backColorButton     = new UIButton();
            comboBoxHeaderLabel = new UILabel();
            sizetextLabel       = new UILabel();
            resolutionLabel     = new UILabel();
            orientationLabel    = new UILabel();
            //searchButton = new UIButton();

            //comboBoxHeaderLabell
            comboBoxHeaderLabel.Text          = "Scale And Layout";
            comboBoxHeaderLabel.TextColor     = UIColor.Black;
            comboBoxHeaderLabel.TextAlignment = UITextAlignment.Left;
            comboBoxHeaderLabel.Font          = UIFont.FromName("Helvetica-Bold", 15f);

            //sizetextLabell
            sizetextLabel.Text          = "Change the size of text, apps and other items";
            sizetextLabel.Lines         = 2;
            sizetextLabel.LineBreakMode = UILineBreakMode.WordWrap;
            sizetextLabel.TextColor     = UIColor.Black;
            sizetextLabel.TextAlignment = UITextAlignment.Left;
            sizetextLabel.Font          = UIFont.FromName("Helvetica", 16f);

            //resolutionLabell
            resolutionLabel.Text          = "Resolution";
            resolutionLabel.TextColor     = UIColor.Black;
            resolutionLabel.TextAlignment = UITextAlignment.Left;
            resolutionLabel.Font          = UIFont.FromName("Helvetica", 16f);

            //orientationLabell
            orientationLabel.Text          = "Orientation";
            orientationLabel.TextColor     = UIColor.Black;
            orientationLabel.TextAlignment = UITextAlignment.Left;
            orientationLabel.Font          = UIFont.FromName("Helvetica", 16f);

            //experienceButtonn
            orientationComboBox = new SfComboBox();
            orientationComboBox.ComboBoxSource       = orientationDetails;
            orientationComboBox.IsEditable           = false;
            orientationComboBox.Text                 = (NSString)"Landscape";
            orientationComboBox.SuggestionMode       = SuggestionMode.StartsWith;
            orientationComboBox.MaxDropDownHeight    = 160;
            orientationComboBox.ItemHeight           = 40;
            orientationComboBox.DropDownCornerRadius = 5;
            orientationComboBox.Watermark            = (NSString)"Search Here";
            if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
            {
                this.controlView.AddSubview(orientationComboBox);
            }
            else
            {
                this.AddSubview(orientationComboBox);
            }
            //comboBoxDoneButtonn
            comboBoxDoneButton.SetTitle("Done\t", UIControlState.Normal);
            comboBoxDoneButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Right;
            comboBoxDoneButton.BackgroundColor     = UIColor.FromRGB(240, 240, 240);
            comboBoxDoneButton.SetTitleColor(UIColor.Black, UIControlState.Normal);
            comboBoxDoneButton.Hidden         = true;
            comboBoxDoneButton.TouchUpInside += HideexperiencePicker;

            sizeDoneButton.SetTitle("Done\t", UIControlState.Normal);
            sizeDoneButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Right;
            sizeDoneButton.BackgroundColor     = UIColor.FromRGB(240, 240, 240);
            sizeDoneButton.SetTitleColor(UIColor.Black, UIControlState.Normal);
            sizeDoneButton.Hidden         = true;
            sizeDoneButton.TouchUpInside += HideexperiencePicker;

            textColorDoneButton.SetTitle("Done\t", UIControlState.Normal);
            textColorDoneButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Right;
            textColorDoneButton.BackgroundColor     = UIColor.FromRGB(240, 240, 240);
            textColorDoneButton.SetTitleColor(UIColor.Black, UIControlState.Normal);
            textColorDoneButton.Hidden         = true;
            textColorDoneButton.TouchUpInside += HideexperiencePicker;

            backColorDoneButton.SetTitle("Done\t", UIControlState.Normal);
            backColorDoneButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Right;
            backColorDoneButton.BackgroundColor     = UIColor.FromRGB(240, 240, 240);
            backColorDoneButton.SetTitleColor(UIColor.Black, UIControlState.Normal);
            backColorDoneButton.Hidden         = true;
            backColorDoneButton.TouchUpInside += HideexperiencePicker;
            //add vieww
            if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
            {
                this.controlView.AddSubview(comboBoxDoneButton);
                this.controlView.AddSubview(sizeDoneButton);
                this.controlView.AddSubview(textColorDoneButton);
                this.controlView.AddSubview(backColorDoneButton);

                this.controlView.AddSubview(comboBoxHeaderLabel);
                this.controlView.AddSubview(sizetextLabel);
                this.controlView.AddSubview(resolutionLabel);
                this.controlView.AddSubview(orientationLabel);
            }
            else
            {
                this.AddSubview(comboBoxDoneButton);
                this.AddSubview(sizeDoneButton);
                this.AddSubview(textColorDoneButton);
                this.AddSubview(backColorDoneButton);

                this.AddSubview(comboBoxHeaderLabel);
                this.AddSubview(sizetextLabel);
                this.AddSubview(resolutionLabel);
                this.AddSubview(orientationLabel);
            }
        }
Exemple #22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Syncfusion.Windows.Forms.Gauge.Range           range1       = new Syncfusion.Windows.Forms.Gauge.Range();
     Syncfusion.Windows.Forms.Gauge.Range           range2       = new Syncfusion.Windows.Forms.Gauge.Range();
     Syncfusion.Windows.Forms.Gauge.Range           range3       = new Syncfusion.Windows.Forms.Gauge.Range();
     Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange1 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
     Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange2 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
     Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange3 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
     Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange4 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
     System.ComponentModel.ComponentResourceManager resources    = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.splitContainerAdv1 = new Syncfusion.Windows.Forms.Tools.SplitContainerAdv();
     this.radialGauge1       = new Syncfusion.Windows.Forms.Gauge.RadialGauge();
     this.linearGauge1       = new Syncfusion.Windows.Forms.Gauge.LinearGauge();
     this.imageList1         = new System.Windows.Forms.ImageList(this.components);
     this.toolTip1           = new System.Windows.Forms.ToolTip(this.components);
     this.label2             = new Syncfusion.Windows.Forms.Tools.AutoLabel();
     this.sfComboBox2        = new Syncfusion.WinForms.ListView.SfComboBox();
     this.label1             = new Syncfusion.Windows.Forms.Tools.AutoLabel();
     this.sfComboBox1        = new Syncfusion.WinForms.ListView.SfComboBox();
     this.checkBox1          = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.splitContainerAdv2 = new Syncfusion.Windows.Forms.Tools.SplitContainerAdv();
     this.tableLayoutPanel2  = new System.Windows.Forms.TableLayoutPanel();
     this.autoLabel1         = new Syncfusion.Windows.Forms.Tools.AutoLabel();
     this.checkBoxAdv2       = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBoxAdv1       = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv1)).BeginInit();
     this.splitContainerAdv1.Panel1.SuspendLayout();
     this.splitContainerAdv1.Panel2.SuspendLayout();
     this.splitContainerAdv1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sfComboBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sfComboBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv2)).BeginInit();
     this.splitContainerAdv2.Panel1.SuspendLayout();
     this.splitContainerAdv2.Panel2.SuspendLayout();
     this.splitContainerAdv2.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainerAdv1
     //
     this.splitContainerAdv1.BackColor       = System.Drawing.Color.White;
     this.splitContainerAdv1.BeforeTouchSize = 13;
     this.splitContainerAdv1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerAdv1.FixedPanel      = Syncfusion.Windows.Forms.Tools.Enums.FixedPanel.Panel1;
     this.splitContainerAdv1.HotExpandLine   = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
     this.splitContainerAdv1.Location        = new System.Drawing.Point(0, 0);
     this.splitContainerAdv1.Name            = "splitContainerAdv1";
     this.splitContainerAdv1.Orientation     = System.Windows.Forms.Orientation.Vertical;
     //
     // splitContainerAdv1.Panel1
     //
     this.splitContainerAdv1.Panel1.BackColor       = System.Drawing.Color.White;
     this.splitContainerAdv1.Panel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
     this.splitContainerAdv1.Panel1.Controls.Add(this.radialGauge1);
     //
     // splitContainerAdv1.Panel2
     //
     this.splitContainerAdv1.Panel2.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
     this.splitContainerAdv1.Panel2.Controls.Add(this.linearGauge1);
     this.splitContainerAdv1.PanelToBeCollapsed = Syncfusion.Windows.Forms.Tools.Enums.CollapsedPanel.Panel1;
     this.splitContainerAdv1.Size             = new System.Drawing.Size(598, 596);
     this.splitContainerAdv1.SplitterDistance = 400;
     this.splitContainerAdv1.SplitterWidth    = 13;
     this.splitContainerAdv1.Style            = Syncfusion.Windows.Forms.Tools.Enums.Style.Office2016Colorful;
     this.splitContainerAdv1.TabIndex         = 0;
     this.splitContainerAdv1.Text             = "splitContainerAdv1";
     this.splitContainerAdv1.ThemeName        = "Office2016Colorful";
     //
     // radialGauge1
     //
     this.radialGauge1.ArcThickness        = 2F;
     this.radialGauge1.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.radialGauge1.EnableCustomNeedles = false;
     this.radialGauge1.FillColor           = System.Drawing.Color.DarkGray;
     this.radialGauge1.FrameThickness      = 12;
     this.radialGauge1.FrameType           = Syncfusion.Windows.Forms.Gauge.FrameType.HalfCircle;
     this.radialGauge1.GaugeArcColor       = System.Drawing.Color.Black;
     this.radialGauge1.GaugeLabel          = "Gauge";
     this.radialGauge1.GaugeLableFont      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radialGauge1.GaugeValueFont      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radialGauge1.InterLinesColor     = System.Drawing.Color.Black;
     this.radialGauge1.LabelPlacement      = Syncfusion.Windows.Forms.Gauge.LabelPlacement.Outside;
     this.radialGauge1.Location            = new System.Drawing.Point(0, 0);
     this.radialGauge1.MajorDifference     = 10F;
     this.radialGauge1.MajorTickMarkColor  = System.Drawing.Color.Black;
     this.radialGauge1.MaximumValue        = 100F;
     this.radialGauge1.MinimumSize         = new System.Drawing.Size(130, 52);
     this.radialGauge1.MinorDifference     = 3F;
     this.radialGauge1.MinorTickMarkColor  = System.Drawing.Color.Black;
     this.radialGauge1.Name                = "radialGauge1";
     this.radialGauge1.NeedleColor         = System.Drawing.Color.Black;
     this.radialGauge1.Padding             = new System.Windows.Forms.Padding(10);
     range1.Color          = System.Drawing.Color.Lime;
     range1.EndValue       = 40F;
     range1.Height         = 10;
     range1.InRange        = false;
     range1.Name           = "Normal range";
     range1.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     range1.StartValue     = 0F;
     range2.Color          = System.Drawing.Color.Yellow;
     range2.EndValue       = 80F;
     range2.Height         = 10;
     range2.InRange        = false;
     range2.Name           = "Check Range";
     range2.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     range2.StartValue     = 40F;
     range3.Color          = System.Drawing.Color.Red;
     range3.EndValue       = 100F;
     range3.Height         = 10;
     range3.InRange        = false;
     range3.Name           = "Alert Range";
     range3.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     range3.StartValue     = 80F;
     this.radialGauge1.Ranges.Add(range1);
     this.radialGauge1.Ranges.Add(range2);
     this.radialGauge1.Ranges.Add(range3);
     this.radialGauge1.ReadOnly        = false;
     this.radialGauge1.ScaleLabelColor = System.Drawing.Color.Black;
     this.radialGauge1.ShowTicks       = true;
     this.radialGauge1.Size            = new System.Drawing.Size(598, 398);
     this.radialGauge1.StartAngle      = 180;
     this.radialGauge1.SweepAngle      = 180;
     this.radialGauge1.TabIndex        = 1;
     this.radialGauge1.ValueChanged   += new System.EventHandler(this.radialGauge1_ValueChanged);
     //
     // linearGauge1
     //
     this.linearGauge1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.linearGauge1.ForeColor        = System.Drawing.Color.Gray;
     this.linearGauge1.GaugelabelFont   = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.linearGauge1.LinearFrameType  = Syncfusion.Windows.Forms.Gauge.LinearFrameType.Horizontal;
     this.linearGauge1.Location         = new System.Drawing.Point(0, 0);
     this.linearGauge1.MajorTicksHeight = 15;
     this.linearGauge1.MaximumSize      = new System.Drawing.Size(598, 304);
     this.linearGauge1.MaximumValue     = 100F;
     this.linearGauge1.MinimumSize      = new System.Drawing.Size(100, 50);
     this.linearGauge1.MinorTickCount   = 5;
     this.linearGauge1.MinorTickHeight  = 10;
     this.linearGauge1.Name             = "linearGauge1";
     this.linearGauge1.Padding          = new System.Windows.Forms.Padding(10);
     this.linearGauge1.PointerPlacement = Syncfusion.Windows.Forms.Gauge.Placement.Center;
     linearRange1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     linearRange1.EndValue       = 15F;
     linearRange1.Height         = 5;
     linearRange1.InRange        = false;
     linearRange1.Name           = "GaugeRange1";
     linearRange1.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     linearRange1.StartValue     = 0F;
     linearRange2.Color          = System.Drawing.Color.Yellow;
     linearRange2.EndValue       = 30F;
     linearRange2.Height         = 5;
     linearRange2.InRange        = false;
     linearRange2.Name           = "GaugeRange2";
     linearRange2.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     linearRange2.StartValue     = 15F;
     linearRange3.Color          = System.Drawing.Color.Red;
     linearRange3.EndValue       = 40F;
     linearRange3.Height         = 5;
     linearRange3.InRange        = true;
     linearRange3.Name           = "GaugeRange3";
     linearRange3.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     linearRange3.StartValue     = 30F;
     linearRange4.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     linearRange4.EndValue       = 0F;
     linearRange4.Height         = 5;
     linearRange4.InRange        = false;
     linearRange4.Name           = "GaugeRange4";
     linearRange4.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
     linearRange4.StartValue     = 0F;
     this.linearGauge1.Ranges.Add(linearRange1);
     this.linearGauge1.Ranges.Add(linearRange2);
     this.linearGauge1.Ranges.Add(linearRange3);
     this.linearGauge1.Ranges.Add(linearRange4);
     this.linearGauge1.ReadOnly            = false;
     this.linearGauge1.ScaleColor          = System.Drawing.Color.Gray;
     this.linearGauge1.Size                = new System.Drawing.Size(598, 183);
     this.linearGauge1.TabIndex            = 1;
     this.linearGauge1.Text                = "linearGauge1";
     this.linearGauge1.Value               = 40F;
     this.linearGauge1.ValueIndicatorColor = System.Drawing.Color.Gray;
     this.linearGauge1.ValueChanged       += new System.EventHandler(this.linearGauge1_ValueChanged);
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location = new System.Drawing.Point(3, 143);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(92, 13);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Toggle Panel On";
     //
     // sfComboBox2
     //
     this.sfComboBox2.Anchor        = System.Windows.Forms.AnchorStyles.Left;
     this.sfComboBox2.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.sfComboBox2.DropDownStyle = Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDownList;
     this.sfComboBox2.Location      = new System.Drawing.Point(3, 161);
     this.sfComboBox2.Name          = "sfComboBox2";
     this.sfComboBox2.Size          = new System.Drawing.Size(187, 28);
     this.sfComboBox2.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.sfComboBox2.TabIndex              = 3;
     this.sfComboBox2.SelectedIndexChanged += new System.EventHandler(this.sfComboBox2_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label1.Location = new System.Drawing.Point(3, 65);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(31, 13);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Style";
     //
     // sfComboBox1
     //
     this.sfComboBox1.Anchor        = System.Windows.Forms.AnchorStyles.Left;
     this.sfComboBox1.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.sfComboBox1.DropDownStyle = Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDownList;
     this.sfComboBox1.Location      = new System.Drawing.Point(3, 83);
     this.sfComboBox1.Name          = "sfComboBox1";
     this.sfComboBox1.Size          = new System.Drawing.Size(187, 28);
     this.sfComboBox1.Style.EditorStyle.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.sfComboBox1.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.sfComboBox1.Style.TokenStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sfComboBox1.TabIndex = 1;
     //
     // checkBox1
     //
     this.checkBox1.Anchor             = System.Windows.Forms.AnchorStyles.Left;
     this.checkBox1.AutoSize           = false;
     this.checkBox1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.checkBox1.BeforeTouchSize    = new System.Drawing.Size(89, 16);
     this.checkBox1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197)))));
     this.checkBox1.DrawFocusRectangle = false;
     this.checkBox1.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
     this.checkBox1.HotBorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
     this.checkBox1.Location           = new System.Drawing.Point(3, 206);
     this.checkBox1.Name               = "checkBox1";
     this.checkBox1.Size               = new System.Drawing.Size(134, 16);
     this.checkBox1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
     this.checkBox1.TabIndex           = 0;
     this.checkBox1.Text               = "Freeze panes";
     this.checkBox1.ThemeName          = "Office2016Colorful";
     this.checkBox1.CheckStateChanged += new System.EventHandler(this.checkBox1_CheckStateChanged);
     //
     // splitContainerAdv2
     //
     this.splitContainerAdv2.BackColor       = System.Drawing.Color.White;
     this.splitContainerAdv2.BeforeTouchSize = 13;
     this.splitContainerAdv2.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.splitContainerAdv2.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerAdv2.FixedPanel      = Syncfusion.Windows.Forms.Tools.Enums.FixedPanel.Panel1;
     this.splitContainerAdv2.HotExpandLine   = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
     this.splitContainerAdv2.Location        = new System.Drawing.Point(0, 0);
     this.splitContainerAdv2.Name            = "splitContainerAdv2";
     //
     // splitContainerAdv2.Panel1
     //
     this.splitContainerAdv2.Panel1.BackColor       = System.Drawing.Color.White;
     this.splitContainerAdv2.Panel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
     this.splitContainerAdv2.Panel1.Controls.Add(this.splitContainerAdv1);
     //
     // splitContainerAdv2.Panel2
     //
     this.splitContainerAdv2.Panel2.AutoSize        = true;
     this.splitContainerAdv2.Panel2.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
     this.splitContainerAdv2.Panel2.Controls.Add(this.tableLayoutPanel2);
     this.splitContainerAdv2.Panel2.Padding     = new System.Windows.Forms.Padding(0, 50, 0, 0);
     this.splitContainerAdv2.PanelToBeCollapsed = Syncfusion.Windows.Forms.Tools.Enums.CollapsedPanel.Panel1;
     this.splitContainerAdv2.Size             = new System.Drawing.Size(877, 598);
     this.splitContainerAdv2.SplitterDistance = 600;
     this.splitContainerAdv2.SplitterWidth    = 13;
     this.splitContainerAdv2.Style            = Syncfusion.Windows.Forms.Tools.Enums.Style.Office2016Colorful;
     this.splitContainerAdv2.TabIndex         = 2;
     this.splitContainerAdv2.Text             = "splitContainerAdv2";
     this.splitContainerAdv2.ThemeName        = "Office2016Colorful";
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.AutoScroll  = true;
     this.tableLayoutPanel2.AutoSize    = true;
     this.tableLayoutPanel2.BackColor   = Color.Transparent;
     this.tableLayoutPanel2.ColumnCount = 1;
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel2.Controls.Add(this.checkBoxAdv2, 0, 6);
     this.tableLayoutPanel2.Controls.Add(this.checkBoxAdv1, 0, 7);
     this.tableLayoutPanel2.Controls.Add(this.autoLabel1, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.checkBox1, 0, 5);
     this.tableLayoutPanel2.Controls.Add(this.sfComboBox2, 0, 4);
     this.tableLayoutPanel2.Controls.Add(this.label2, 0, 3);
     this.tableLayoutPanel2.Controls.Add(this.sfComboBox1, 0, 2);
     this.tableLayoutPanel2.Controls.Add(this.label1, 0, 1);
     this.tableLayoutPanel2.Location = new System.Drawing.Point(21, 57);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 8;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(200, 317);
     this.tableLayoutPanel2.TabIndex = 3;
     //
     // autoLabel1
     //
     this.autoLabel1.Anchor   = System.Windows.Forms.AnchorStyles.Left;
     this.autoLabel1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.autoLabel1.Location = new System.Drawing.Point(3, 9);
     this.autoLabel1.Name     = "autoLabel1";
     this.autoLabel1.Size     = new System.Drawing.Size(91, 20);
     this.autoLabel1.TabIndex = 7;
     this.autoLabel1.Text     = "Properties";
     //
     // checkBoxAdv2
     //
     this.checkBoxAdv2.Anchor             = System.Windows.Forms.AnchorStyles.Left;
     this.checkBoxAdv2.AutoSize           = false;
     this.checkBoxAdv2.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.checkBoxAdv2.BeforeTouchSize    = new System.Drawing.Size(134, 16);
     this.checkBoxAdv2.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197)))));
     this.checkBoxAdv2.DrawFocusRectangle = false;
     this.checkBoxAdv2.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
     this.checkBoxAdv2.HotBorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
     this.checkBoxAdv2.Location           = new System.Drawing.Point(3, 245);
     this.checkBoxAdv2.Name               = "checkBoxAdv2";
     this.checkBoxAdv2.Size               = new System.Drawing.Size(134, 16);
     this.checkBoxAdv2.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
     this.checkBoxAdv2.TabIndex           = 6;
     this.checkBoxAdv2.Text               = "Collapse LinearGauge";
     this.checkBoxAdv2.ThemeName          = "Office2016Colorful";
     this.checkBoxAdv2.CheckStateChanged += new System.EventHandler(this.checkBoxAdv2_CheckStateChanged);
     //
     // checkBoxAdv1
     //
     this.checkBoxAdv1.Anchor             = System.Windows.Forms.AnchorStyles.Left;
     this.checkBoxAdv1.AutoSize           = false;
     this.checkBoxAdv1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.checkBoxAdv1.BeforeTouchSize    = new System.Drawing.Size(135, 16);
     this.checkBoxAdv1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197)))));
     this.checkBoxAdv1.DrawFocusRectangle = false;
     this.checkBoxAdv1.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
     this.checkBoxAdv1.HotBorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
     this.checkBoxAdv1.Location           = new System.Drawing.Point(3, 287);
     this.checkBoxAdv1.Name               = "checkBoxAdv1";
     this.checkBoxAdv1.Size               = new System.Drawing.Size(135, 16);
     this.checkBoxAdv1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
     this.checkBoxAdv1.TabIndex           = 5;
     this.checkBoxAdv1.Text               = "Collapse RadialGauge";
     this.checkBoxAdv1.ThemeName          = "Office2016Colorful";
     this.checkBoxAdv1.CheckStateChanged += new System.EventHandler(this.checkBoxAdv1_CheckStateChanged);
     //
     // Form1
     //
     this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(877, 598);
     this.Controls.Add(this.splitContainerAdv2);
     this.MaximumSize   = new System.Drawing.Size(893, 662);
     this.MinimumSize   = new System.Drawing.Size(893, 615);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "SplitContainer";
     this.Load         += new System.EventHandler(this.Form1_Load);
     this.splitContainerAdv1.Panel1.ResumeLayout(false);
     this.splitContainerAdv1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv1)).EndInit();
     this.splitContainerAdv1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.sfComboBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sfComboBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
     this.splitContainerAdv2.Panel1.ResumeLayout(false);
     this.splitContainerAdv2.Panel2.ResumeLayout(false);
     this.splitContainerAdv2.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv2)).EndInit();
     this.splitContainerAdv2.ResumeLayout(false);
     this.splitContainerAdv2.PerformLayout();
     this.tableLayoutPanel2.ResumeLayout(false);
     this.tableLayoutPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).EndInit();
     this.ResumeLayout(false);
 }
Exemple #23
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Syncfusion.Windows.Forms.Gauge.Range           range1       = new Syncfusion.Windows.Forms.Gauge.Range();
            Syncfusion.Windows.Forms.Gauge.Range           range2       = new Syncfusion.Windows.Forms.Gauge.Range();
            Syncfusion.Windows.Forms.Gauge.Range           range3       = new Syncfusion.Windows.Forms.Gauge.Range();
            Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange1 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
            Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange2 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
            Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange3 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
            Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange4 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
            Syncfusion.Windows.Forms.Gauge.LinearRange     linearRange5 = new Syncfusion.Windows.Forms.Gauge.LinearRange();
            System.ComponentModel.ComponentResourceManager resources    = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.splitContainerAdv1 = new Syncfusion.Windows.Forms.Tools.SplitContainerAdv();
            this.radialGauge1       = new Syncfusion.Windows.Forms.Gauge.RadialGauge();
            this.linearGauge1       = new Syncfusion.Windows.Forms.Gauge.LinearGauge();
            this.imageList1         = new System.Windows.Forms.ImageList(this.components);
            this.toolTip1           = new System.Windows.Forms.ToolTip(this.components);
            this.label3             = new Syncfusion.Windows.Forms.Tools.AutoLabel();
            this.label2             = new Syncfusion.Windows.Forms.Tools.AutoLabel();
            this.sfComboBox2        = new SfComboBox();
            this.label1             = new Syncfusion.Windows.Forms.Tools.AutoLabel();
            this.sfComboBox1        = new SfComboBox();
            this.checkBox1          = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
            this.splitContainerAdv2 = new Syncfusion.Windows.Forms.Tools.SplitContainerAdv();
            this.autoLabel1         = new Syncfusion.Windows.Forms.Tools.AutoLabel();
            this.checkBoxAdv2       = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
            this.checkBoxAdv1       = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv1)).BeginInit();
            this.splitContainerAdv1.Panel1.SuspendLayout();
            this.splitContainerAdv1.Panel2.SuspendLayout();
            this.splitContainerAdv1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.sfComboBox2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.sfComboBox1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv2)).BeginInit();
            this.splitContainerAdv2.Panel1.SuspendLayout();
            this.splitContainerAdv2.Panel2.SuspendLayout();
            this.splitContainerAdv2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).BeginInit();
            this.SuspendLayout();
            //
            // splitContainerAdv1
            //
            this.splitContainerAdv1.BackColor       = System.Drawing.Color.White;
            this.splitContainerAdv1.BeforeTouchSize = 13;
            this.splitContainerAdv1.Dock            = System.Windows.Forms.DockStyle.Fill;
            this.splitContainerAdv1.FixedPanel      = Syncfusion.Windows.Forms.Tools.Enums.FixedPanel.Panel1;
            this.splitContainerAdv1.HotExpandLine   = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.splitContainerAdv1.Location        = new System.Drawing.Point(0, 0);
            this.splitContainerAdv1.Name            = "splitContainerAdv1";
            this.splitContainerAdv1.Orientation     = System.Windows.Forms.Orientation.Vertical;
            //
            // splitContainerAdv1.Panel1
            //
            this.splitContainerAdv1.Panel1.BackColor       = System.Drawing.Color.White;
            this.splitContainerAdv1.Panel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
            this.splitContainerAdv1.Panel1.Controls.Add(this.radialGauge1);
            //
            // splitContainerAdv1.Panel2
            //
            this.splitContainerAdv1.Panel2.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
            this.splitContainerAdv1.Panel2.Controls.Add(this.linearGauge1);
            this.splitContainerAdv1.PanelToBeCollapsed = Syncfusion.Windows.Forms.Tools.Enums.CollapsedPanel.Panel1;
            this.splitContainerAdv1.Size             = new System.Drawing.Size(598, 573);
            this.splitContainerAdv1.SplitterDistance = 275;
            this.splitContainerAdv1.SplitterWidth    = 13;
            this.splitContainerAdv1.Style            = Syncfusion.Windows.Forms.Tools.Enums.Style.Office2016Colorful;
            this.splitContainerAdv1.TabIndex         = 0;
            this.splitContainerAdv1.Text             = "splitContainerAdv1";
            //
            // radialGauge1
            //
            this.radialGauge1.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.radialGauge1.EnableCustomNeedles = false;
            this.radialGauge1.FrameType           = Syncfusion.Windows.Forms.Gauge.FrameType.HalfCircle;
            this.radialGauge1.GaugeArcColor       = System.Drawing.Color.Black;
            this.radialGauge1.GaugeLabel          = "Gauge";
            this.radialGauge1.GaugeLableFont      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.radialGauge1.GaugeValueFont      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.radialGauge1.InterLinesColor     = System.Drawing.Color.Black;
            this.radialGauge1.LabelPlacement      = Syncfusion.Windows.Forms.Gauge.LabelPlacement.Outside;
            this.radialGauge1.Location            = new System.Drawing.Point(140, 25);
            this.radialGauge1.MajorDifference     = 10F;
            this.radialGauge1.MajorTickMarkColor  = System.Drawing.Color.Black;
            this.radialGauge1.MaximumValue        = 100F;
            this.radialGauge1.MinimumSize         = new System.Drawing.Size(130, 52);
            this.radialGauge1.MinorDifference     = 3F;
            this.radialGauge1.MinorTickMarkColor  = System.Drawing.Color.Black;
            this.radialGauge1.Name        = "radialGauge1";
            this.radialGauge1.NeedleColor = System.Drawing.Color.Black;
            range1.Color          = System.Drawing.Color.Lime;
            range1.EndValue       = 40F;
            range1.Height         = 10;
            range1.InRange        = false;
            range1.Name           = "Normal range";
            range1.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            range1.StartValue     = 0F;
            range2.Color          = System.Drawing.Color.Yellow;
            range2.EndValue       = 80F;
            range2.Height         = 10;
            range2.InRange        = false;
            range2.Name           = "Check Range";
            range2.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            range2.StartValue     = 40F;
            range3.Color          = System.Drawing.Color.Red;
            range3.EndValue       = 100F;
            range3.Height         = 10;
            range3.InRange        = false;
            range3.Name           = "Alert Range";
            range3.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            range3.StartValue     = 80F;
            this.radialGauge1.Ranges.Add(range1);
            this.radialGauge1.Ranges.Add(range2);
            this.radialGauge1.Ranges.Add(range3);
            this.radialGauge1.ReadOnly        = false;
            this.radialGauge1.ScaleLabelColor = System.Drawing.Color.Black;
            this.radialGauge1.Size            = new System.Drawing.Size(316, 210);
            this.radialGauge1.StartAngle      = 180;
            this.radialGauge1.SweepAngle      = 180;
            this.radialGauge1.TabIndex        = 1;
            this.radialGauge1.ValueChanged   += new System.EventHandler(this.radialGauge1_ValueChanged);
            //
            // linearGauge1
            //
            this.linearGauge1.Anchor           = System.Windows.Forms.AnchorStyles.None;
            this.linearGauge1.ForeColor        = System.Drawing.Color.Gray;
            this.linearGauge1.GaugelabelFont   = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.linearGauge1.LinearFrameType  = Syncfusion.Windows.Forms.Gauge.LinearFrameType.Horizontal;
            this.linearGauge1.Location         = new System.Drawing.Point(141, 81);
            this.linearGauge1.MajorTicksHeight = 15;
            this.linearGauge1.MaximumValue     = 100F;
            this.linearGauge1.MinimumSize      = new System.Drawing.Size(100, 50);
            this.linearGauge1.MinorTickCount   = 5;
            this.linearGauge1.MinorTickHeight  = 10;
            this.linearGauge1.Name             = "linearGauge1";
            this.linearGauge1.PointerPlacement = Syncfusion.Windows.Forms.Gauge.Placement.Center;
            linearRange1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
            linearRange1.EndValue       = 67F;
            linearRange1.Height         = 5;
            linearRange1.InRange        = false;
            linearRange1.Name           = "GaugeRange1";
            linearRange1.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            linearRange1.StartValue     = 45F;
            linearRange2.Color          = System.Drawing.Color.Red;
            linearRange2.EndValue       = 15F;
            linearRange2.Height         = 5;
            linearRange2.InRange        = false;
            linearRange2.Name           = "GaugeRange2";
            linearRange2.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            linearRange2.StartValue     = 5F;
            linearRange3.Color          = System.Drawing.Color.Yellow;
            linearRange3.EndValue       = 38F;
            linearRange3.Height         = 5;
            linearRange3.InRange        = false;
            linearRange3.Name           = "GaugeRange3";
            linearRange3.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            linearRange3.StartValue     = 23F;
            linearRange4.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
            linearRange4.EndValue       = 0F;
            linearRange4.Height         = 5;
            linearRange4.InRange        = false;
            linearRange4.Name           = "GaugeRange4";
            linearRange4.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            linearRange4.StartValue     = 0F;
            linearRange5.Color          = System.Drawing.Color.Blue;
            linearRange5.EndValue       = 100F;
            linearRange5.Height         = 5;
            linearRange5.InRange        = false;
            linearRange5.Name           = "GaugeRange5";
            linearRange5.RangePlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.Inside;
            linearRange5.StartValue     = 80F;
            this.linearGauge1.Ranges.Add(linearRange1);
            this.linearGauge1.Ranges.Add(linearRange2);
            this.linearGauge1.Ranges.Add(linearRange3);
            this.linearGauge1.Ranges.Add(linearRange4);
            this.linearGauge1.Ranges.Add(linearRange5);
            this.linearGauge1.ReadOnly            = false;
            this.linearGauge1.ScaleColor          = System.Drawing.Color.Gray;
            this.linearGauge1.Size                = new System.Drawing.Size(316, 125);
            this.linearGauge1.TabIndex            = 1;
            this.linearGauge1.Text                = "linearGauge1";
            this.linearGauge1.Value               = 40F;
            this.linearGauge1.ValueIndicatorColor = System.Drawing.Color.Gray;
            this.linearGauge1.ValueChanged       += new System.EventHandler(this.linearGauge1_ValueChanged);
            //
            // imageList1
            //
            this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "");
            this.imageList1.Images.SetKeyName(1, "");
            //
            // label3
            //
            this.label3.AutoSize  = false;
            this.label3.Dock      = System.Windows.Forms.DockStyle.Top;
            this.label3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.label3.Location  = new System.Drawing.Point(10, 10);
            this.label3.Name      = "label3";
            this.label3.Size      = new System.Drawing.Size(861, 25);
            this.label3.TabIndex  = 0;
            this.label3.Text      = "This sample showcases the collapsible features and different styles of the SplitContainerAdv control.";
            //
            // label2
            //
            this.label2.Anchor   = System.Windows.Forms.AnchorStyles.None;
            this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.Location = new System.Drawing.Point(27, 214);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(126, 20);
            this.label2.TabIndex = 4;
            this.label2.Text     = "Toggle Panel On";
            //
            // comboBoxAdv1
            //
            this.sfComboBox2.Anchor    = System.Windows.Forms.AnchorStyles.None;
            this.sfComboBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.sfComboBox2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

            this.sfComboBox2.Location              = new System.Drawing.Point(30, 248);
            this.sfComboBox2.Name                  = "comboBoxAdv1";
            this.sfComboBox2.Size                  = new System.Drawing.Size(167, 28);
            this.sfComboBox2.TabIndex              = 3;
            this.sfComboBox2.SelectedIndexChanged += new System.EventHandler(this.sfComboBox2_SelectedIndexChanged);
            //
            // label1
            //
            this.label1.Anchor   = System.Windows.Forms.AnchorStyles.None;
            this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.Location = new System.Drawing.Point(27, 121);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(44, 20);
            this.label1.TabIndex = 2;
            this.label1.Text     = "Style";
            //
            // comboBox1
            //
            this.sfComboBox1.Anchor    = System.Windows.Forms.AnchorStyles.None;
            this.sfComboBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.sfComboBox1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.sfComboBox1.Location  = new System.Drawing.Point(30, 155);
            this.sfComboBox1.Name      = "comboBox1";
            this.sfComboBox1.Size      = new System.Drawing.Size(167, 28);
            this.sfComboBox1.TabIndex  = 1;
            //
            // checkBox1
            //
            this.checkBox1.Anchor             = System.Windows.Forms.AnchorStyles.None;
            this.checkBox1.AutoSize           = true;
            this.checkBox1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.checkBox1.BeforeTouchSize    = new System.Drawing.Size(122, 23);
            this.checkBox1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197)))));
            this.checkBox1.DrawFocusRectangle = false;
            this.checkBox1.Font               = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.checkBox1.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
            this.checkBox1.HotBorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.checkBox1.Location           = new System.Drawing.Point(27, 314);
            this.checkBox1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(91)))));
            this.checkBox1.Name               = "checkBox1";
            this.checkBox1.Size               = new System.Drawing.Size(122, 23);
            this.checkBox1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
            this.checkBox1.TabIndex           = 0;
            this.checkBox1.Text               = "Freeze panes";
            this.checkBox1.ThemesEnabled      = false;
            this.checkBox1.CheckStateChanged += new System.EventHandler(this.checkBox1_CheckStateChanged);
            //
            // splitContainerAdv2
            //
            this.splitContainerAdv2.BackColor       = System.Drawing.Color.White;
            this.splitContainerAdv2.BeforeTouchSize = 13;
            this.splitContainerAdv2.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
            this.splitContainerAdv2.Dock            = System.Windows.Forms.DockStyle.Fill;
            this.splitContainerAdv2.FixedPanel      = Syncfusion.Windows.Forms.Tools.Enums.FixedPanel.Panel1;
            this.splitContainerAdv2.HotExpandLine   = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.splitContainerAdv2.Location        = new System.Drawing.Point(10, 35);
            this.splitContainerAdv2.Name            = "splitContainerAdv2";
            //
            // splitContainerAdv2.Panel1
            //
            this.splitContainerAdv2.Panel1.BackColor       = System.Drawing.Color.White;
            this.splitContainerAdv2.Panel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
            this.splitContainerAdv2.Panel1.Controls.Add(this.splitContainerAdv1);
            //
            // splitContainerAdv2.Panel2
            //
            this.splitContainerAdv2.Panel2.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
            this.splitContainerAdv2.Panel2.Controls.Add(this.autoLabel1);
            this.splitContainerAdv2.Panel2.Controls.Add(this.checkBoxAdv2);
            this.splitContainerAdv2.Panel2.Controls.Add(this.checkBoxAdv1);
            this.splitContainerAdv2.Panel2.Controls.Add(this.label2);
            this.splitContainerAdv2.Panel2.Controls.Add(this.checkBox1);
            this.splitContainerAdv2.Panel2.Controls.Add(this.sfComboBox2);
            this.splitContainerAdv2.Panel2.Controls.Add(this.sfComboBox1);
            this.splitContainerAdv2.Panel2.Controls.Add(this.label1);
            this.splitContainerAdv2.PanelToBeCollapsed = Syncfusion.Windows.Forms.Tools.Enums.CollapsedPanel.Panel1;
            this.splitContainerAdv2.Size             = new System.Drawing.Size(861, 575);
            this.splitContainerAdv2.SplitterDistance = 600;
            this.splitContainerAdv2.SplitterWidth    = 13;
            this.splitContainerAdv2.Style            = Syncfusion.Windows.Forms.Tools.Enums.Style.Office2016Colorful;
            this.splitContainerAdv2.TabIndex         = 2;
            this.splitContainerAdv2.Text             = "splitContainerAdv2";
            //
            // autoLabel1
            //
            this.autoLabel1.Anchor   = System.Windows.Forms.AnchorStyles.None;
            this.autoLabel1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.autoLabel1.Location = new System.Drawing.Point(30, 70);
            this.autoLabel1.Name     = "autoLabel1";
            this.autoLabel1.Size     = new System.Drawing.Size(91, 20);
            this.autoLabel1.TabIndex = 7;
            this.autoLabel1.Text     = "Properties";
            //
            // checkBoxAdv2
            //
            this.checkBoxAdv2.Anchor             = System.Windows.Forms.AnchorStyles.None;
            this.checkBoxAdv2.AutoSize           = true;
            this.checkBoxAdv2.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.checkBoxAdv2.BeforeTouchSize    = new System.Drawing.Size(182, 23);
            this.checkBoxAdv2.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197)))));
            this.checkBoxAdv2.DrawFocusRectangle = false;
            this.checkBoxAdv2.Font               = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.checkBoxAdv2.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
            this.checkBoxAdv2.HotBorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.checkBoxAdv2.Location           = new System.Drawing.Point(27, 422);
            this.checkBoxAdv2.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(91)))));
            this.checkBoxAdv2.Name               = "checkBoxAdv2";
            this.checkBoxAdv2.Size               = new System.Drawing.Size(182, 23);
            this.checkBoxAdv2.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
            this.checkBoxAdv2.TabIndex           = 6;
            this.checkBoxAdv2.Text               = "Collapse LinearGauge";
            this.checkBoxAdv2.ThemesEnabled      = false;
            this.checkBoxAdv2.CheckStateChanged += new System.EventHandler(this.checkBoxAdv2_CheckStateChanged);
            //
            // checkBoxAdv1
            //
            this.checkBoxAdv1.Anchor             = System.Windows.Forms.AnchorStyles.None;
            this.checkBoxAdv1.AutoSize           = true;
            this.checkBoxAdv1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.checkBoxAdv1.BeforeTouchSize    = new System.Drawing.Size(183, 23);
            this.checkBoxAdv1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197)))));
            this.checkBoxAdv1.DrawFocusRectangle = false;
            this.checkBoxAdv1.Font               = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.checkBoxAdv1.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
            this.checkBoxAdv1.HotBorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.checkBoxAdv1.Location           = new System.Drawing.Point(27, 369);
            this.checkBoxAdv1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(91)))));
            this.checkBoxAdv1.Name               = "checkBoxAdv1";
            this.checkBoxAdv1.Size               = new System.Drawing.Size(183, 23);
            this.checkBoxAdv1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
            this.checkBoxAdv1.TabIndex           = 5;
            this.checkBoxAdv1.Text               = "Collapse RadialGauge";
            this.checkBoxAdv1.ThemesEnabled      = false;
            this.checkBoxAdv1.CheckStateChanged += new System.EventHandler(this.checkBoxAdv1_CheckStateChanged);
            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
            this.BackColor         = System.Drawing.Color.White;
            this.ClientSize        = new System.Drawing.Size(881, 620);
            this.Controls.Add(this.splitContainerAdv2);
            this.Controls.Add(this.label3);
            this.Font          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MaximumSize   = new System.Drawing.Size(893, 662);
            this.MinimumSize   = new System.Drawing.Size(893, 662);
            this.Name          = "Form1";
            this.Padding       = new System.Windows.Forms.Padding(10);
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = "SplitContainer";
            this.Load         += new System.EventHandler(this.Form1_Load);
            this.splitContainerAdv1.Panel1.ResumeLayout(false);
            this.splitContainerAdv1.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv1)).EndInit();
            this.splitContainerAdv1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.sfComboBox2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.sfComboBox1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
            this.splitContainerAdv2.Panel1.ResumeLayout(false);
            this.splitContainerAdv2.Panel2.ResumeLayout(false);
            this.splitContainerAdv2.Panel2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv2)).EndInit();
            this.splitContainerAdv2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).EndInit();
            this.ResumeLayout(false);
        }
Exemple #24
0
        public Home()
        {
            InitializeComponent();
            combobox            = new SfComboBox();
            combobox.DataSource = App.Database.GetStashesNames();

            data_entry       = new DataSubmissions.Base_Data_Entry(combobox.Text, this);
            Example1.Content = data_entry.Content;



            Add_stash                  = new Button();
            Add_stash.Text             = "+";
            combobox.HorizontalOptions = Xamarin.Forms.LayoutOptions.FillAndExpand;
            // combobox.WidthRequest = 260;
            Add_stash.HorizontalOptions    = Xamarin.Forms.LayoutOptions.Start;
            combobox_holder                = new StackLayout();
            combobox_holder.Orientation    = Xamarin.Forms.StackOrientation.Horizontal;
            combobox.MaximumDropDownHeight = 150;
            combobox_holder.Children.Add(combobox);
            combobox.ItemPadding = 0;
            Add_stash.Padding    = 0;
            combobox_holder.Children.Add(Add_stash);
            combobox.SelectionChanged += comboBox1_SelectedItemChanged;


            Add_stash.BackgroundColor         = Xamarin.Forms.Color.Transparent;
            combobox_holder.HorizontalOptions = Xamarin.Forms.LayoutOptions.Center;
            Add_stash.HorizontalOptions       = Xamarin.Forms.LayoutOptions.Start;
            Add_stash.Clicked += Create_Stash;
            MainGrid.RowDefinitions.Insert(1, new RowDefinition {
                Height = new GridLength(5, GridUnitType.Auto)
            });

            _query_selector = new query_attrs(DateTime.Today.AddDays(-7), DateTime.Today.AddDays(7), this);
            MainGrid.Children.Add(_query_selector, 1, 1);
            MainGrid.Children.Add(combobox, 1, 2);
            MainGrid.Children.Add(Add_stash, 2, 2);

            StackLayout hider = new StackLayout();

            hider.BackgroundColor   = Xamarin.Forms.Color.LightBlue;
            hider.Orientation       = Xamarin.Forms.StackOrientation.Horizontal;
            hider.HorizontalOptions = Xamarin.Forms.LayoutOptions.FillAndExpand;

            Label new_dec = new Label();

            new_dec.Text = "New entry";
            Switch switchControl = new Switch {
                IsToggled = true
            };

            switchControl.Toggled  += switch_OnToggled;
            switchControl.IsToggled = false;
            new_dec.TextColor       = Xamarin.Forms.Color.White;
            new_dec.FontSize        = 20;
            hider.Children.Add(new_dec);
            hider.Children.Add(switchControl);
            new_dec.HorizontalOptions       = Xamarin.Forms.LayoutOptions.End;
            switchControl.HorizontalOptions = Xamarin.Forms.LayoutOptions.EndAndExpand;


            forecast = new Analytics.Forecast();
            StackLayout forecast_hider = new StackLayout();

            forecast_hider.BackgroundColor   = Xamarin.Forms.Color.LightBlue;
            forecast_hider.Orientation       = Xamarin.Forms.StackOrientation.Horizontal;
            forecast_hider.HorizontalOptions = Xamarin.Forms.LayoutOptions.FillAndExpand;


            Label show_forecast = new Label();

            show_forecast.TextColor = Xamarin.Forms.Color.White;
            show_forecast.FontSize  = 20;
            show_forecast.Text      = "Plot Data";
            Switch forecast_switchControl = new Switch {
                IsToggled = true
            };

            forecast_switchControl.Toggled  += show_plot;
            forecast_switchControl.IsToggled = false;



            forecast_hider.Children.Add(show_forecast);
            forecast_hider.Children.Add(forecast_switchControl);
            show_forecast.HorizontalOptions          = Xamarin.Forms.LayoutOptions.End;
            forecast_switchControl.HorizontalOptions = Xamarin.Forms.LayoutOptions.EndAndExpand;
            main_form.Children.Insert(1, hider);
            main_form.Children.Insert(3, forecast_hider);
            main_form.Children.Insert(4, forecast);

            forecast.HeightRequest = 300;
            forecast_hider.MinimumHeightRequest = hider.Height;
            this.nullcb();
            OnAppearing();
        }
 protected override void OnUnWireEvents(SfComboBox view)
 {
     base.OnUnWireEvents(view);
     view.Unfocused -= View_Unfocused;
 }
Exemple #26
0
        public ArchMain()
        {
            //resets values
            UIComp720.ID      = -1;
            UIPractice.PracID = -1;
            Model.PracEndsHold.ResetHold();

            noBowOrDist = new SfPopupLayout();
            var scroll = new ScrollView();

            StackLayout layout = new StackLayout()
            {
                VerticalOptions   = LayoutOptions.Start,
                HorizontalOptions = LayoutOptions.Start,
                Padding           = new Thickness(50)
            };

            var grid = new Grid {
                RowSpacing = 50
            };

            grid.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });
            grid.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });
            grid.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });
            grid.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });
            grid.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });
            grid.ColumnDefinitions.Add(new ColumnDefinition {
                Width = new GridLength(120)
            });
            grid.ColumnDefinitions.Add(new ColumnDefinition {
                Width = new GridLength(1, GridUnitType.Star)
            });
            grid.ColumnDefinitions.Add(new ColumnDefinition {
                Width = new GridLength(20)
            });


            var label1 = new Label {
                Text = "Bow Type: ", TextColor = Color.FromHex("#010101"), FontSize = 20
            };
            List <String> bowTypeList = new List <String>();

            bowTypeList.Add("Recurve");
            bowTypeList.Add("Compound");
            bowTypeList.Add("Barebow");
            bowTypeList.Add("Crossbow");
            bowTypeList.Add("Longbow");


            SfComboBox comboBoxBow = new SfComboBox();

            comboBoxBow.HeightRequest         = 40;
            comboBoxBow.MaximumDropDownHeight = 200;
            comboBoxBow.IsEditableMode        = false;
            comboBoxBow.DataSource            = bowTypeList;
            comboBoxBow.SelectionChanged     += (object sender, SelectionChangedEventArgs e) =>
            {
                var a = comboBoxBow.SelectedIndex;
                bowType = comboBoxBow.SelectedValue.ToString();
                App.Database.AddBow(bowType); //adds bow to database
            };

            var label2 = new Label {
                Text = "Distance: ", TextColor = Color.FromHex("#010101"), FontSize = 20
            };
            List <String> distList = new List <String>();

            distList.Add("90");
            distList.Add("70");
            distList.Add("60");
            distList.Add("50");
            distList.Add("40");
            distList.Add("30");
            distList.Add("20");
            distList.Add("15");

            SfComboBox comboBoxDist = new SfComboBox();

            comboBoxDist.HeightRequest         = 40;
            comboBoxDist.MaximumDropDownHeight = 200;
            comboBoxDist.IsEditableMode        = false;
            comboBoxDist.DataSource            = distList;
            comboBoxDist.SelectionChanged     += (object sender, SelectionChangedEventArgs e) =>
            {
                var a = comboBoxDist.SelectedIndex;
                dist = comboBoxDist.SelectedValue.ToString();
            };

            var label3 = new Label {
                Text = "Competition: ", TextColor = Color.FromHex("#010101"), FontSize = 20
            };
            List <String> compList = new List <String>();

            compList.Add("720");

            SfComboBox comboBoxComp = new SfComboBox();

            comboBoxComp.HeightRequest         = 40;
            comboBoxComp.MaximumDropDownHeight = 200;
            comboBoxComp.IsEditableMode        = false;
            comboBoxComp.DataSource            = compList;
            comboBoxComp.SelectionChanged     += (object sender, SelectionChangedEventArgs e) =>
            {
                var a = comboBoxComp.SelectedIndex;
                compType = comboBoxComp.SelectedValue.ToString();
            };

            Button compButton = new Button
            {
                Text              = "Competition",
                VerticalOptions   = LayoutOptions.CenterAndExpand,
                HorizontalOptions = LayoutOptions.Center,
                BackgroundColor   = Color.LightBlue
            };

            compButton.Clicked += CompButtonClicked;

            Button pracButton = new Button
            {
                Text              = "Practice",
                VerticalOptions   = LayoutOptions.CenterAndExpand,
                HorizontalOptions = LayoutOptions.Center,
                BackgroundColor   = Color.LightBlue
            };

            pracButton.Clicked += PracButtonClicked;

            Button backupButton = new Button
            {
                Text              = "Backup",
                VerticalOptions   = LayoutOptions.CenterAndExpand,
                HorizontalOptions = LayoutOptions.Center,
                BackgroundColor   = Color.LightBlue
            };

            backupButton.Clicked += BackUpButtonClicked;


            grid.Children.Add(label1, 0, 0);
            grid.Children.Add(comboBoxBow, 1, 0);
            grid.Children.Add(label2, 0, 1);
            grid.Children.Add(comboBoxDist, 1, 1);
            grid.Children.Add(label3, 0, 2);
            grid.Children.Add(comboBoxComp, 1, 2);
            grid.Children.Add(compButton, 0, 3);
            grid.Children.Add(pracButton, 1, 3);
            grid.Children.Add(backupButton, 0, 4);

            layout.Children.Add(grid);
            scroll.Content = layout;
            Content        = scroll;
        }
        void bumpButton_Clicked(System.Object sender, System.EventArgs e)
        {
            int count = 0;

            foreach (Assignments ass in Asses)
            {
                if (ass.Grade == "NG")
                {
                    count++;
                }
            }

            DataTemplate popupView = new DataTemplate(() =>
            {
                var m = new StackLayout()
                {
                    Orientation = StackOrientation.Vertical, Margin = 5, Spacing = 5, VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, BackgroundColor = LoginPage.g1
                };

                var topRow = new StackLayout()
                {
                    Orientation = StackOrientation.Horizontal, Spacing = 0, VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand
                };
                var l = new Label()
                {
                    Text = "Bump your grade", TextColor = Color.White, FontSize = 20f, HorizontalTextAlignment = TextAlignment.Center, HorizontalOptions = LayoutOptions.Center
                };
                topRow.Children.Add(l);

                var midRow = new StackLayout()
                {
                    Orientation = StackOrientation.Horizontal, Spacing = 0, VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.FillAndExpand
                };
                var l2 = new Label()
                {
                    Text = "Select the grade that you want", TextColor = Color.White, VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Start
                };
                gradeSel = new SfComboBox()
                {
                    WidthRequest = 200, VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.End
                };
                gradeSel.ComboBoxSource = new List <string>()
                {
                    "A", "B", "C", "D", "E"
                };
                gradeSel.Watermark      = "Grade";
                gradeSel.WatermarkColor = Color.White;
                gradeSel.TextColor      = Color.White;
                midRow.Children.Add(l2);
                midRow.Children.Add(gradeSel);

                var botRow = new StackLayout()
                {
                    Orientation = StackOrientation.Vertical, Spacing = 5, VerticalOptions = LayoutOptions.End, HorizontalOptions = LayoutOptions.FillAndExpand
                };
                var l3 = new Label()
                {
                    TextColor = Color.White, HorizontalOptions = LayoutOptions.CenterAndExpand, VerticalOptions = LayoutOptions.Start, FontSize = 15f
                };
                l3.Text = count + " assignments found that can be bumped";
                var b   = new SfButton()
                {
                    HorizontalOptions = LayoutOptions.Center, WidthRequest = 80, VerticalOptions = LayoutOptions.End, BackgroundColor = Color.DarkGray, Margin = new Thickness(5, 5)
                };
                b.Clicked  += B_Clicked;
                b.Text      = "Bump";
                b.TextColor = Color.White;
                botRow.Children.Add(l3);
                botRow.Children.Add(b);

                m.Children.Add(topRow);
                m.Children.Add(midRow);
                m.Children.Add(botRow);
                return(m);
            });

            bumpPop.PopupView.ContentTemplate     = popupView;
            bumpPop.PopupView.AutoSizeMode        = AutoSizeMode.Both;
            bumpPop.PopupView.ShowHeader          = false;
            bumpPop.PopupView.ShowFooter          = false;
            bumpPop.ClosePopupOnBackButtonPressed = true;
            bumpPop.Show();
        }
Exemple #28
0
 protected override void OnInitializeView(DataFormItem dataFormItem, SfComboBox view)
 {
     base.OnInitializeView(dataFormItem, view);
     view.IsEditableMode = true;
 }
Exemple #29
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.imageList1               = new System.Windows.Forms.ImageList(this.components);
     this.gradientPanel1           = new Syncfusion.Windows.Forms.Tools.GradientPanel();
     this.comboBoxAdv1             = new Syncfusion.WinForms.ListView.SfComboBox();
     this.checkBoxAdv3             = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBoxAdv2             = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBoxAdv1             = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.label3                   = new System.Windows.Forms.Label();
     this.statusStripEx1           = new Syncfusion.Windows.Forms.Tools.StatusStripEx();
     this.toolStripStatusLabel1    = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripStatusLabel2    = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
     this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton();
     this.trackBarItem1            = new Syncfusion.Windows.Forms.Tools.TrackBarItem();
     this.toolStripDropDownButton3 = new System.Windows.Forms.ToolStripDropDownButton();
     this.statusStripLabel1        = new Syncfusion.Windows.Forms.Tools.StatusStripLabel();
     this.statusStripLabel2        = new Syncfusion.Windows.Forms.Tools.StatusStripLabel();
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel1)).BeginInit();
     this.gradientPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).BeginInit();
     this.statusStripEx1.SuspendLayout();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // gradientPanel1
     //
     this.gradientPanel1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
     this.gradientPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gradientPanel1.Controls.Add(this.comboBoxAdv1);
     this.gradientPanel1.Controls.Add(this.checkBoxAdv3);
     this.gradientPanel1.Controls.Add(this.checkBoxAdv2);
     this.gradientPanel1.Controls.Add(this.checkBoxAdv1);
     this.gradientPanel1.Controls.Add(this.label3);
     this.gradientPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.gradientPanel1.Location = new System.Drawing.Point(0, 0);
     this.gradientPanel1.Name     = "gradientPanel1";
     this.gradientPanel1.Size     = new System.Drawing.Size(920, 396);
     this.gradientPanel1.TabIndex = 14;
     //
     // comboBoxAdv1
     //
     this.comboBoxAdv1.DropDownStyle         = Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDownList;
     this.comboBoxAdv1.Location              = new System.Drawing.Point(474, 245);
     this.comboBoxAdv1.Name                  = "comboBoxAdv1";
     this.comboBoxAdv1.Size                  = new System.Drawing.Size(138, 21);
     this.comboBoxAdv1.TabIndex              = 6;
     this.comboBoxAdv1.Text                  = "Office2019Colorful";
     this.comboBoxAdv1.SelectedIndexChanged += new System.EventHandler(this.comboBoxAdv1_SelectedIndexChanged);
     //
     // checkBoxAdv3
     //
     this.checkBoxAdv3.BeforeTouchSize = new System.Drawing.Size(150, 21);
     this.checkBoxAdv3.Location        = new System.Drawing.Point(377, 188);
     this.checkBoxAdv3.MetroColor      = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(91)))));
     this.checkBoxAdv3.Name            = "checkBoxAdv3";
     this.checkBoxAdv3.Size            = new System.Drawing.Size(150, 21);
     this.checkBoxAdv3.TabIndex        = 5;
     this.checkBoxAdv3.Text            = "Show Item ToolTip";
     this.checkBoxAdv3.ThemesEnabled   = false;
     this.checkBoxAdv3.CheckedChanged += new System.EventHandler(this.checkBoxAdv3_CheckedChanged);
     //
     // checkBoxAdv2
     //
     this.checkBoxAdv2.BeforeTouchSize = new System.Drawing.Size(150, 21);
     this.checkBoxAdv2.Location        = new System.Drawing.Point(377, 128);
     this.checkBoxAdv2.MetroColor      = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(91)))));
     this.checkBoxAdv2.Name            = "checkBoxAdv2";
     this.checkBoxAdv2.Size            = new System.Drawing.Size(150, 21);
     this.checkBoxAdv2.TabIndex        = 4;
     this.checkBoxAdv2.Text            = "Show gripper";
     this.checkBoxAdv2.ThemesEnabled   = false;
     this.checkBoxAdv2.CheckedChanged += new System.EventHandler(this.checkBoxAdv3_CheckedChanged);
     //
     // checkBoxAdv1
     //
     this.checkBoxAdv1.BeforeTouchSize = new System.Drawing.Size(150, 21);
     this.checkBoxAdv1.Location        = new System.Drawing.Point(377, 68);
     this.checkBoxAdv1.MetroColor      = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(91)))));
     this.checkBoxAdv1.Name            = "checkBoxAdv1";
     this.checkBoxAdv1.Size            = new System.Drawing.Size(150, 21);
     this.checkBoxAdv1.TabIndex        = 3;
     this.checkBoxAdv1.Text            = "Show separator";
     this.checkBoxAdv1.ThemesEnabled   = false;
     this.checkBoxAdv1.CheckedChanged += new System.EventHandler(this.checkBoxAdv3_CheckedChanged);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(377, 250);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(64, 13);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Visual style";
     //
     // statusStripEx1
     //
     this.statusStripEx1.BackColor        = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241)))));
     this.statusStripEx1.BeforeTouchSize  = new System.Drawing.Size(920, 30);
     this.statusStripEx1.Dock             = Syncfusion.Windows.Forms.Tools.DockStyleEx.Bottom;
     this.statusStripEx1.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.statusStripEx1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1,
         this.toolStripStatusLabel2,
         this.toolStripDropDownButton1,
         this.toolStripDropDownButton2,
         this.trackBarItem1,
         this.toolStripDropDownButton3,
         this.statusStripLabel1,
         this.statusStripLabel2
     });
     this.statusStripEx1.Location    = new System.Drawing.Point(0, 396);
     this.statusStripEx1.MetroColor  = System.Drawing.Color.FromArgb(((int)(((byte)(135)))), ((int)(((byte)(206)))), ((int)(((byte)(255)))));
     this.statusStripEx1.Name        = "statusStripEx1";
     this.statusStripEx1.Size        = new System.Drawing.Size(920, 30);
     this.statusStripEx1.TabIndex    = 15;
     this.statusStripEx1.Text        = "statusStripEx1";
     this.statusStripEx1.ThemeName   = "Office2016Colorful";
     this.statusStripEx1.VisualStyle = Syncfusion.Windows.Forms.Tools.StatusStripExStyle.Office2016Colorful;
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Name        = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size        = new System.Drawing.Size(139, 15);
     this.toolStripStatusLabel1.Text        = "All folders are up to date.";
     this.toolStripStatusLabel1.ToolTipText = "Synchronization status.";
     //
     // toolStripStatusLabel2
     //
     this.toolStripStatusLabel2.Name        = "toolStripStatusLabel2";
     this.toolStripStatusLabel2.Size        = new System.Drawing.Size(189, 15);
     this.toolStripStatusLabel2.Text        = "Connected to: Microsoft Exchange";
     this.toolStripStatusLabel2.ToolTipText = "Connectivity to your server.";
     //
     // toolStripDropDownButton1
     //
     this.toolStripDropDownButton1.DisplayStyle      = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripDropDownButton1.Image             = global::StatusStripExDemo.Properties.Resources.@__ShowHide2019_other_theme;
     this.toolStripDropDownButton1.Name              = "toolStripDropDownButton1";
     this.toolStripDropDownButton1.ShowDropDownArrow = false;
     this.toolStripDropDownButton1.Size              = new System.Drawing.Size(28, 28);
     this.toolStripDropDownButton1.Text              = "toolStripDropDownButton1";
     this.toolStripDropDownButton1.ToolTipText       = "Normal View. Show All Pinned Panes.";
     //
     // toolStripDropDownButton2
     //
     this.toolStripDropDownButton2.DisplayStyle      = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripDropDownButton2.Image             = global::StatusStripExDemo.Properties.Resources.@__Book2019;
     this.toolStripDropDownButton2.Name              = "toolStripDropDownButton2";
     this.toolStripDropDownButton2.ShowDropDownArrow = false;
     this.toolStripDropDownButton2.Size              = new System.Drawing.Size(28, 28);
     this.toolStripDropDownButton2.Text              = "toolStripDropDownButton2";
     this.toolStripDropDownButton2.ToolTipText       = "Reading View. Hide All Pinned Panes.";
     //
     // trackBarItem1
     //
     this.trackBarItem1.Maximum     = 200;
     this.trackBarItem1.Minimum     = 0;
     this.trackBarItem1.Name        = "trackBarItem1";
     this.trackBarItem1.Size        = new System.Drawing.Size(250, 20);
     this.trackBarItem1.Text        = "trackBarItem1";
     this.trackBarItem1.ToolTipText = "Zoom";
     this.trackBarItem1.Value       = 100;
     //
     // toolStripDropDownButton3
     //
     this.toolStripDropDownButton3.DisplayStyle      = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.toolStripDropDownButton3.Name              = "toolStripDropDownButton3";
     this.toolStripDropDownButton3.ShowDropDownArrow = false;
     this.toolStripDropDownButton3.Size              = new System.Drawing.Size(42, 19);
     this.toolStripDropDownButton3.Text              = "100 %";
     this.toolStripDropDownButton3.ToolTipText       = "Zoom level";
     //
     // statusStripLabel1
     //
     this.statusStripLabel1.Margin      = new System.Windows.Forms.Padding(0, 3, 0, 2);
     this.statusStripLabel1.Name        = "statusStripLabel1";
     this.statusStripLabel1.Size        = new System.Drawing.Size(60, 15);
     this.statusStripLabel1.Text        = "Items: 128";
     this.statusStripLabel1.ToolTipText = "Number of items in this folder.";
     //
     // statusStripLabel2
     //
     this.statusStripLabel2.Margin      = new System.Windows.Forms.Padding(0, 3, 0, 2);
     this.statusStripLabel2.Name        = "statusStripLabel2";
     this.statusStripLabel2.Size        = new System.Drawing.Size(63, 15);
     this.statusStripLabel2.Text        = "Unread: 20";
     this.statusStripLabel2.ToolTipText = "Number of unread items in this folder.";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
     this.ClientSize        = new System.Drawing.Size(920, 426);
     this.Controls.Add(this.gradientPanel1);
     this.Controls.Add(this.statusStripEx1);
     this.Font          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "Form1";
     this.Padding       = new System.Windows.Forms.Padding(0);
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "StatusStripEx";
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel1)).EndInit();
     this.gradientPanel1.ResumeLayout(false);
     this.gradientPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).EndInit();
     this.statusStripEx1.ResumeLayout(false);
     this.statusStripEx1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        private void ListTemplate()
        {
            AssList.ItemSpacing    = 0;
            AssList.AutoFitMode    = Syncfusion.ListView.XForms.AutoFitMode.DynamicHeight;
            AssList.BindingContext = new Assignments();
            AssList.ItemTemplate   = new DataTemplate(() =>
            {
                Grid MainGrid = new Grid()
                {
                    VerticalOptions = LayoutOptions.StartAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.FromRgba(0, 0, 0, 0.5), Margin = new Thickness(0), Padding = 0
                };

                StackLayout main = new StackLayout()
                {
                    Spacing = 5, Margin = 0, Padding = 0, Orientation = StackOrientation.Vertical, VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand
                };

                StackLayout firstRow = new StackLayout()
                {
                    Orientation = StackOrientation.Horizontal, Spacing = 0, VerticalOptions = LayoutOptions.Fill, HorizontalOptions = LayoutOptions.FillAndExpand, HeightRequest = 50
                };
                Label l = new Label()
                {
                    TextColor = Color.White, FontSize = 18, WidthRequest = 200, LineBreakMode = Xamarin.Forms.LineBreakMode.TailTruncation, FontAttributes = FontAttributes.Bold, HorizontalOptions = LayoutOptions.StartAndExpand, VerticalOptions = LayoutOptions.Center, VerticalTextAlignment = TextAlignment.Center, Margin = new Thickness(0, 0)
                };
                l.SetBinding(Label.TextProperty, new Binding("Description"));
                firstRow.Children.Add(l);

                StackLayout border = new StackLayout()
                {
                    WidthRequest = 150, HeightRequest = 50, VerticalOptions = LayoutOptions.StartAndExpand, HorizontalOptions = LayoutOptions.End, Margin = new Thickness(0, 0)
                };
                StackLayout score = new StackLayout()
                {
                    Orientation = StackOrientation.Horizontal, WidthRequest = 150, VerticalOptions = LayoutOptions.StartAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand
                };

                StackLayout holder1 = new StackLayout()
                {
                    VerticalOptions = LayoutOptions.Start, HorizontalOptions = LayoutOptions.Center, WidthRequest = 105, HeightRequest = 40
                };
                var inputLayout1 = new SfTextInputLayout()
                {
                    ContainerType = ContainerType.Outlined, VerticalOptions = LayoutOptions.StartAndExpand, HorizontalOptions = LayoutOptions.Center, HeightRequest = 40, InputViewPadding = 0, ReserveSpaceForAssistiveLabels = false
                };
                SfNumericTextBox points = new SfNumericTextBox()
                {
                    TextAlignment = TextAlignment.Center, VerticalOptions = LayoutOptions.Start, HorizontalOptions = LayoutOptions.FillAndExpand, TextColor = Color.White, HeightRequest = 40, Margin = 0, SelectAllOnFocus = true
                };
                points.SetBinding(SfNumericTextBox.ValueProperty, new Binding("Points", BindingMode.TwoWay));
                inputLayout1.SetBinding(SfTextInputLayout.ContainerBackgroundColorProperty, new Binding("BackColor"));
                points.MaximumNumberDecimalDigits = 1;
                points.Completed      += Handle_ValueChanged;
                points.Minimum         = 0;
                inputLayout1.InputView = points;
                holder1.Children.Add(inputLayout1);

                StackLayout holder2 = new StackLayout()
                {
                    VerticalOptions = LayoutOptions.Start, HorizontalOptions = LayoutOptions.Center, WidthRequest = 105, HeightRequest = 40
                };
                var inputLayout2 = new SfTextInputLayout()
                {
                    ContainerType = ContainerType.Outlined, VerticalOptions = LayoutOptions.StartAndExpand, HorizontalOptions = LayoutOptions.Center, HeightRequest = 40, InputViewPadding = 0, ReserveSpaceForAssistiveLabels = false
                };
                SfNumericTextBox possible = new SfNumericTextBox()
                {
                    TextAlignment = TextAlignment.Center, VerticalOptions = LayoutOptions.Start, HorizontalOptions = LayoutOptions.FillAndExpand, TextColor = Color.White, HeightRequest = 40, Margin = 0, SelectAllOnFocus = true
                };
                possible.SetBinding(SfNumericTextBox.ValueProperty, new Binding("Possible", BindingMode.TwoWay));
                inputLayout2.SetBinding(SfTextInputLayout.ContainerBackgroundColorProperty, new Binding("BackColor"));
                possible.MaximumNumberDecimalDigits = 1;
                possible.Completed    += Handle_ValueChanged;
                inputLayout2.InputView = possible;
                holder2.Children.Add(inputLayout2);

                score.Children.Add(holder1);
                score.Children.Add(holder2);

                border.Children.Add(score);
                border.BackgroundColor = Color.Transparent;
                firstRow.Children.Add(border);

                StackLayout subMain = new StackLayout()
                {
                    Spacing = 0, Margin = 0, Padding = 0, HorizontalOptions = LayoutOptions.FillAndExpand, Orientation = StackOrientation.Horizontal, VerticalOptions = LayoutOptions.StartAndExpand
                };
                cat = new SfComboBox()
                {
                    HorizontalOptions = LayoutOptions.StartAndExpand, WidthRequest = 200, HeightRequest = 50, TextColor = Color.White, VerticalOptions = LayoutOptions.CenterAndExpand
                };
                cat.ComboBoxSource    = Cats;
                cat.SelectionChanged += ComboBox_SelectionChanged;
                cat.SetBinding(SfComboBox.TextProperty, new Binding("AssignmentType", BindingMode.TwoWay));
                subMain.Children.Add(cat);
                gradeBox = new SfComboBox()
                {
                    HorizontalOptions = LayoutOptions.End, WidthRequest = 150, TextColor = Color.White
                };
                gradeBox.SetBinding(SfComboBox.TextProperty, new Binding("Grade", BindingMode.TwoWay));
                gradeBox.ComboBoxSource    = gradesPoss;
                gradeBox.SelectionChanged += Gradebox_SelectionChanged;
                subMain.Children.Add(gradeBox);

                StackLayout last = new StackLayout()
                {
                    Orientation = StackOrientation.Horizontal, VerticalOptions = LayoutOptions.End, HorizontalOptions = LayoutOptions.FillAndExpand, Margin = new Thickness(0, 0)
                };
                Binding dateNTime   = new Binding("Date");
                dateNTime.Converter = new AssignmentDateConverter();
                Label date          = new Label()
                {
                    TextColor = Color.White, VerticalOptions = LayoutOptions.End, FontSize = 15f, FontAttributes = FontAttributes.Bold, Margin = new Thickness(0, 0), HorizontalOptions = LayoutOptions.EndAndExpand
                };
                date.SetBinding(Label.TextProperty, dateNTime);
                last.Children.Add(date);

                main.Children.Add(firstRow);
                main.Children.Add(subMain);
                main.Children.Add(last);
                main.Children.Add(new BoxView()
                {
                    Color = Color.Black, HorizontalOptions = LayoutOptions.FillAndExpand, HeightRequest = 2
                });

                MainGrid.Children.Add(main);
                return(MainGrid);
            });
        }