I'm using the XamMaskedEditor and so far it's doing everything I am needing it to do. One thing I'd like to do and could use some guidance on is how to cause all text in the control to be highlighted whenever the user clicks or tabs in so that whatever they type overwrites whatever is in there.
Thank you,
Mike
Matt,
Put this in App.xaml and the corresponding C# code in the cs file and now all of my XamMaskedEditor controls are behaving.
Thanks!
Ok, this looks good. Still absorbing Styles. Thank you. I'll get back to you and let you know how this works.
Thanks for addressing my issue. I think if I only had a few controls this would work, but I am going to have hundreds of these controls throughout the application and I'd like to avoid having to trap the GotFocus event for all of them if I can avoid it. Is there a way to build this in somehow where I have to do it only once?
Thanks,
HI,
You could wrie up the GotFocus event and call the SelectAll method.
Here the code snippet:
private void xmed_GotFocus(object sender, RoutedEventArgs e)
{ XamMaskedEditor xme = sender as XamMaskedEditor; xme.SelectAll();
}
Sincerely, Matt Developer Support Engineer