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
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
Matt,
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,