title: WPF Validation and Data Templates
body: <p>I'm looking for a way to validate all the data on a form that has tabs and the tabs contain data templates. I've been looking all over and found a similar question here: <a href="http://www.netframeworkdev.com/windows-presentation-foundation-wpf/wpf-validation-data-templates-74176.shtml" rel="nofollow noreferrer">http://www.netframeworkdev.com/windows-presentation-foundation-wpf/wpf-validation-data-templates-74176.shtml</a>, but that didn't get a good answer.</p>
  
  <p>Walking the logical tree to check all controls seems to stop at the data template.<br>
  Walking the visual tree does not include controls that are not on the currently visible tab.<br>
  Using IDataError does not catch invalid input such as letters in a textbox that is bound to a number.</p>
  
  <p>Is there a simple, clean solution to this?</p>
  
  <p>Any help would be much appreciated.</p>