views:

39

answers:

1

I have a textbox that I want to validate, but when I validate it and whatever way I am setting the border seems to actually wrap the actual border I want to change inside the textbox i.e. it adds another border outside the textbox.

Has anyone got any example of how to set a pixel perfect border that doesn't look pants on an event?

A: 

Hi Burt,

I have no example for you, but here is what you can do.

In Silverlight you can override TextBox style, and play with validation controls and states in it.

In WPF you can play with Validation.ErrorTemplate Attached Property. Also you can look at this article on CodeProject: Validation in Windows Presentation Foundation

Hope I understood you properly :). But I don't know what does "look pants on an event" means alt text.

Anvaka