Hi,
how do i make XamDateTimeInput, XamNumericInput... to get red when my data has error (regular expression/data annoations), like a textbox and DatePicker??
thanks!
Hi 280872,
You can do this simply by changing the BorderBrush property on those controls to a red one. I would create 2 Brush objects, one to hold onto the original and one to hold the red one. Then when the validation event fires to notify the user of an error, you can grab the control and set the BorderBrush property to the red brush. When the user fixes the error you can switch the brush back to the original one.
Let me know if you have any questions.
Do you have any further questions on this matter?