Example #1
0
        private void ComponentLoad()
        {
            _model = new FormViewModel();
            ScrollView scrollView = new ScrollView();
            Frame      mainFrame  = new Frame()
            {
                BorderColor = Color.Black, Padding = 5, Margin = 2
            };
            StackLayout mainStackLayout = new StackLayout()
            {
                Padding = 0, Spacing = 10
            };

            _genericForm = new GenericForm <FormViewModel>("Başlık");
            mainStackLayout.Children.Add(_genericForm);
            mainFrame.Content  = mainStackLayout;
            scrollView.Content = mainFrame;
            _genericForm.AddView(GetFormContent());
            _genericForm.AddView(GetFormOtherComponent());
            _genericForm.AddView(GetFormFooter());
            _genericForm.FinishForm(FormSerialize, CancelForm);
            Content = scrollView;
        }