This project is read-only.

Default TextUnMasked behaviour

Nov 20, 2009 at 1:06 PM

Hi, great tool you got here!

Just one comment. I notice that TextUnMasked does not always update as expected.

For example, in MaskedEditDemo.MainPage.xaml, when you change the code from:

        private void MaskCus_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
        {
            LblCusUnMask.Text = this.MaskCus.TextUnMasked;
        }

to:

        static int i = 0;
        private void MaskCus_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
        {
            if (++i % 2 == 0)
            {
                LblCusUnMask.Text = this.MaskCus.TextUnMasked;
            }
        }

then the previous value is not always correct. I see that there is a property "UnMaskedAtLostfocus" that fix this when the focus is lost, but should you not rather always set TextUnMasked as the default behaviour on text changed? I think this would make more sense from a user's point of view.

Regards

Nov 20, 2009 at 1:48 PM
Edited Nov 20, 2009 at 1:49 PM

See "issue tracker" for more comments:

http://sivlerlightinputctrl.codeplex.com/WorkItem/View.aspx?WorkItemId=3383