在Silverlight应用程序中进行验证 [英] Validation In silverlight application
本文介绍了在Silverlight应用程序中进行验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..
我是Silverlight的新手.
我需要验证文本框的名称和日期.
请帮帮我..
Hi..
I am new to silverlight.
i need to validate textbox for name and date.
please help me out..
thanks in advance.
推荐答案
Silverlight 3及更高版本提供了一些简洁的UI/功能来进行验证.
您可以对文本框使用ValidatesOnException
/NotifyonValidationError
属性组合来创建对数据输入的验证.
Silverlight 4:数据验证-每日技巧-部分1 [此处 [
Silverlight 3 and above provides some neat UI / features for validation.
You can useValidatesOnException
/NotifyonValidationError
property combination for a textbox to create validations on data entry.
Silverlight 4 : Data Validation - Tip of the Day - Part 1[^] describes this in detail.
In addition, you can use theIDataErrorInfo
to throw an error / validate in Silverlight 4.
Here[^] is an example.
这篇关于在Silverlight应用程序中进行验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文