Esempio n. 1
0
        public void BuildView()
        {
            Title = AppResources.Servicio;

            Content = new StackLayout
            {
                Padding  = 5,
                Children =
                {
                    new StackLayout
                    {
                        Children =
                        {
                            new Label
                            {
                                Style = CustomStyles.DefaultLabels(),
                                Text  = AppResources.Fecha
                            },
                            _fechaDatePicker
                        }
                    },
                    new Label
                    {
                        Style = CustomStyles.DefaultLabels(),
                        Text  = AppResources.Descripcion
                    },
                    _descripcionEditor
                }
            };
        }
        public void InitControls()
        {
            _direccionLabel = new Label
            {
                Text  = AppResources.Direccion,
                Style = CustomStyles.DefaultLabels()
            };

            _calleBindablePicker = new BindablePicker
            {
                Title             = AppResources.SeleccionaCalle,
                DisplayMemberPath = nameof(Calle.Valor),
                SelectedValuePath = nameof(Calle.Valor),
            };

            _numeroLabel = new Label
            {
                Text  = AppResources.IntroducirNumero,
                Style = CustomStyles.DefaultLabels()
            };

            _numeroEntry = new Entry
            {
                Keyboard = Keyboard.Numeric
            };
        }
Esempio n. 3
0
        public void InitControls()
        {
            _tipLabel = new Label
            {
                Text  = AppResources.IntroducirTip,
                Style = CustomStyles.DefaultLabels()
            };

            _tipEntry = new Entry
            {
                Keyboard = Keyboard.Numeric
            };
        }
        public void InitControls()
        {
            _datosPersonaLabel = new Label
            {
                Text  = AppResources.IntroducirPersona,
                Style = CustomStyles.DefaultLabels()
            };

            _dniEntry = new Entry
            {
                Placeholder = AppResources.IntroducirDni
            };
        }
        public void InitControls()
        {
            _matriculaLabel = new Label
            {
                Text  = AppResources.IntroducirMatricula,
                Style = CustomStyles.DefaultLabels()
            };
            _matriculaEntry = new Entry
            {
                Placeholder = AppResources.EjemploMatricula
            };

            _personaLabel = new Label
            {
                Text  = AppResources.IntroducirPersona,
                Style = CustomStyles.DefaultLabels()
            };

            _dniEntry = new Entry
            {
                Placeholder = AppResources.IntroducirDni
            };
        }
        public void BuildView()
        {
            Title = AppResources.Resumen;

            Content = new ScrollView
            {
                Content = new StackLayout
                {
                    Children =
                    {
                        new StackLayout
                        {
                            Children =
                            {
                                new Label
                                {
                                    Style = CustomStyles.DefaultLabels(),
                                    Text  = AppResources.Fecha
                                },
                                _fechaLabel
                            }
                        },
                        new Label
                        {
                            Style = CustomStyles.DefaultLabels(),
                            Text  = AppResources.Descripcion
                        },
                        _descripcionLabel,
                        new StackLayout
                        {
                            Children =
                            {
                                new Label
                                {
                                    Text  = AppResources.Direccion,
                                    Style = CustomStyles.DefaultLabels()
                                },
                                _lugarLabel
                            }
                        },
                        new StackLayout
                        {
                            Children =
                            {
                                new Label
                                {
                                    Text  = AppResources.Agente,
                                    Style = CustomStyles.DefaultLabels()
                                },
                                _agenteLabel
                            }
                        },
                        new StackLayout
                        {
                            Children =
                            {
                                new Label
                                {
                                    Text  = AppResources.Persona,
                                    Style = CustomStyles.DefaultLabels()
                                },
                                _personaLabel
                            }
                        },
                    }
                }
            };
        }