I have implemented IDataErrorInfo
interface to validate my entities.
<TextBox Text="{Binding User.Name, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" />
It works fine but I want to re-validate the data when the user presses the save button. Is their any way that exists to achieve this functionality in IDataErrorInfo
.
Maybe you should consider using INotifyDataErrorInfo Interface
this should give you more control... including a GetErrors method and more which you could execute on the button click command (I asume you are using MVVM)
find Infos here:
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifydataerrorinfo(v=vs.95).aspx
and a good blog post here: