Hello,
I override IsValidText in the TextEditingTool. It works great.
Is it possible to let the focus on the textbox if IsValidText returns false ?
public class QD_TextEditingTool : TextEditingTool
{
protected override bool IsValidText(string oldstring, string newstring)
{
if (string.IsNullOrEmpty(newstring))
{
MessageBox.Show(Session.GetString("errEmptyName", "Vous devez indiquer un nom abrégé"), "Erreur", MessageBoxButton.OK, MessageBoxImage.Exclamation);
return false;
}
return base.IsValidText(oldstring, newstring);
}
}
I use WPF 1.2.2.3 dll version.
Thanks
Aurore