wpftoolkit
wpftoolkit copied to clipboard
Validation Problem in RichTextBox

facing problem while i am trying to validate this richtextbox.
this is the code behind to validate
if (propName == "ClientAddress")
{
if (string.IsNullOrEmpty(this.ClientAddress))
{
result = "Adress is required";
}
else if (ClientAddress.Length > 60)
{
result = "Address should be less then 60 character";
}
}
Hi,
What is the problem ? Can you elaborate ? Thanks.