locked
WPF validation rule RRS feed

  • Question

  • I am trying to learn how to create a WPF validation rule using a tooltip. I've searched help in Visual Studio 2008 and several web sites including http://www.switchonthecode.com/tutorials/wpf-tutorial-binding-validation-rules. My program (http://www.4shared.com/file/extcmab_/WPFAlarmClockTimer_v_80.html) compiles and runs but the code I put in there for the validation rule does not work. I'm sure it's because I don't understand how to make it work.

    I have code that validates the time (TimeValidation beginning at line 127). It works fine and does all the validation I want done, but the MessageBox is clumsy. I heard of the tooltip so have been experimenting with it, but can't seem to figure it out. I hope someone can give me a short tutorial.

    Thanks!

    Sunday, May 9, 2010 7:33 PM

Answers

All replies