Silverlight Date picker style with error message


Silverlight Date picker control will not display error message by default, to display error message we need to create style and in that style we need to add validationErrorElement this will be common for all silverlight controls to display error message.
Unfortunately we cannot find this border in the generic Date picker control. Check the below image.

no validation

Silverlight Datepicker without validation

After lot of work i am able to show error message, by adding a “ValidationErrorElement” in the style and created states “Validation States” to display error message when a error occurred.Check the below image.

without validation

Silverlight Datepicker with validation

Now the error message looks like in the below image


You can download this style from here

Advertisements

2 thoughts on “Silverlight Date picker style with error message

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s