开发者

about silverlight textbox validation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜