Exemplo n.º 1
0
        public MainPage()
        {
            InitializeComponent();

            this.TxtData.Focused     += TxtData_Focused;
            this.TxtData.TextChanged += TxtData_TextChanged;

            this.TxtCnpj.Focused     += TxtCnpj_Focused;
            this.TxtCnpj.TextChanged += TxtCnpj_TextChanged;
            this.TxtCnpj.Completed   += TxtCnpj_Completed;

            this.TxtCpf.Focused     += TxtCpf_Focused;
            this.TxtCpf.TextChanged += TxtCpf_TextChanged;
            this.TxtCpf.Completed   += TxtCpf_Completed;

            this.TxtTel.Focused     += TxtTel_Focused;
            this.TxtTel.TextChanged += TxtTel_TextChanged;

            this.TxtFree.Focused     += TxtFree_Focused;
            this.TxtFree.TextChanged += TxtFree_TextChanged;

            this.TxtDecSemMilar.TextChanged += TxtDecSemMilar_TextChanged;
            this.TxtDecSemMilar.Focused     += TxtDecSemMilar_Focused;

            this.TxtDecComMilar.TextChanged += TxtDecComMilar_TextChanged;
            this.TxtDecComMilar.Focused     += TxtDecComMilar_Focused;

            this.TxtInteiroComMilhar.TextChanged += TxtInteiroComMilhar_TextChanged;
            this.TxtInteiroComMilhar.Focused     += TxtInteiroComMilhar_Focused;

            this.TxtIE.TextChanged += TxtIE_TextChanged;
            this.TxtIE.Focused     += TxtIE_Focused;

            MaskEdX = new MaskEdX(new Entry(), Keyboard.Default);

            vm = new MainPageViewModel();

            BindingContext = vm;
        }
Exemplo n.º 2
0
 private void TxtIE_Focused(object sender, FocusEventArgs e)
 {
     //((Entry)sender).Text = "isento";
     MaskEdX = new MaskEdX((Entry)sender, Keyboard.Default);
     //((Entry)sender).Text = "110042490114";
 }
Exemplo n.º 3
0
 private void TxtData_Focused(object sender, FocusEventArgs e)
 {
     MaskEdX = new MaskEdX((Entry)sender, Keyboard.Numeric);
 }
Exemplo n.º 4
0
 private void TxtCnpj_Focused(object sender, FocusEventArgs e)
 {
     MaskEdX = new MaskEdX((Entry)sender, Keyboard.Numeric);
     //((Entry)sender).Text = "02468872000104";
     //DisplayAlert("ClipText", MaskEdX.ClipText(((Entry)sender).Text), "Ok");
 }
Exemplo n.º 5
0
 private void TxtInteiroComMilhar_Focused(object sender, FocusEventArgs e)
 {
     MaskEdX = new MaskEdX((Entry)sender, Keyboard.Numeric);
 }