Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- namespace App1
- {
- public partial class MainPage : ContentPage
- {
- public Keyboard KeyboardPersonalizado { get; set; }
- public MainPage()
- {
- InitializeComponent();
- KeyboardPersonalizado = Keyboard.Email;
- BindingContext = this;
- }
- private void NewEntryTextoModificado(object sender,
- TextChangedEventArgs textChangedEventArgs)
- {
- var texto = textChangedEventArgs.NewTextValue;
- System.Diagnostics.Debug.WriteLine("texto modificado "+ texto );
- }
- private void NewEntryTextoCompleto(object sender,
- EventArgs eventArgs)
- {
- var texto = entryNome.Text;
- System.Diagnostics.Debug.WriteLine("texto completo " + texto);
- DisplayAlert("Alerta", "O texto " + texto, "OK");
- }
- private void NewButtonClicado(object sender, EventArgs eventArgs)
- {
- var valor = entryNome.Text.ToString();
- System.Diagnostics.Debug.WriteLine("Botão clicado" + valor);
- DisplayAlert("Alerta", "O texto " + valor, "OK");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment