hercioneto

TA-2017 MainPage.xaml.cs

Sep 18th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.28 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Xamarin.Forms;
  7.  
  8. namespace App1
  9. {
  10.     public partial class MainPage : ContentPage
  11.     {
  12.         public Keyboard KeyboardPersonalizado { get; set; }
  13.  
  14.         public MainPage()
  15.         {
  16.             InitializeComponent();
  17.             KeyboardPersonalizado = Keyboard.Email;
  18.             BindingContext = this;
  19.         }
  20.         private void NewEntryTextoModificado(object sender,
  21.             TextChangedEventArgs textChangedEventArgs)
  22.         {
  23.             var texto = textChangedEventArgs.NewTextValue;
  24.             System.Diagnostics.Debug.WriteLine("texto modificado "+ texto );
  25.            
  26.  
  27.         }
  28.         private void NewEntryTextoCompleto(object sender,
  29.             EventArgs eventArgs)
  30.         {
  31.             var texto = entryNome.Text;
  32.             System.Diagnostics.Debug.WriteLine("texto completo " + texto);
  33.             DisplayAlert("Alerta", "O texto " + texto, "OK");
  34.         }
  35.         private void NewButtonClicado(object sender, EventArgs eventArgs)
  36.         {
  37.             var valor = entryNome.Text.ToString();
  38.             System.Diagnostics.Debug.WriteLine("Botão clicado" + valor);
  39.             DisplayAlert("Alerta", "O texto " + valor, "OK");
  40.         }
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment