开发者

about silverlight textbox validation

开发者 https://www.devze.com 2023-02-10 07:21 出处:网络
The data validation for textbox in s开发者_运维问答ilverlight 4 has a red tooltip that flies out to the right.

The data validation for textbox in s开发者_运维问答ilverlight 4 has a red tooltip that flies out to the right.

I don't want the color of textbox's border change to red, and don't need red tooltip neither.

How can I make this tooltip disappear when validation failed?


here you can find how you can style the validation tooltip: Silverlight: How to style the validation tooltip?

This can solve your problem.

In addition you could disable the validation on your binding. How do you validate your input? If you have set the NotifyOnValidationError and the ValidatesOnExceptions to true, remove it (it is false by default). Or if you use validation via INotifyDataErrorInfo you have to set the ValidatesOnNotifyDataErrors to false (this is true by default).

Hope this helps.

BR,

TJ

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号