Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
925
Red border on NotifyDataError
posted

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!

Parents
  • 34510
    Offline posted

    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.

Reply Children
No Data