Marc,
I'm not reporting a bug, I'm just confused how you achieve the following:
What markup do you need to:
1. Provide your own CellEditor template (in my case an AutoSelectTextBox)
2. Provide your own value converter.
3. Validate only on focus lost, but optionally on PropertyChanged
4. Indicate the phase that any validation rules are executed. RawProposedValue, Converted value etc.
5. Make sure Validation.HasError is set at the appropriate level so that errors are presented to the user.
What is needed is a good example on your web site of a cell editor using TextBox or AutoSelectTextBox. Many users seem totally confused by your examples (which are largely out of date for .Net 4.0) and only target your own controls using the xcdg:CellEditorBinding which only seems to support PropertyChanged validation.
=====================================================================
The following nearly works - except the datacell is not flaged in error. The AutoSelectTextBox does get flagged, but this does not stop the WPF validation cycle and the value gets overriden by the original internal value.
<xcdg:CellEditor x:Key="DateTimeEditor" >
<xcdg:CellEditor.EditTemplate>
<DataTemplate>
<xcctrl:AutoSelectTextBox Name="PART_CellEditorBoundControl"
xcdg:CellEditor.HasError="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.HasError),ValidatesOnExceptions=True}"
xcdg:DataCell.IsCellFocusScope="True"
Validation.Error="PART_CellEditorBoundControl_Error" >
<xcctrl:AutoSelectTextBox.Text>
<Binding RelativeSource="{RelativeSource FindAncestor, AncestorType=xcdg:DataCell}"
Path="Content"
Converter="{model:FullTimeConverter}"
UpdateSourceTrigger="LostFocus"
ValidatesOnExceptions="True"
NotifyOnValidationError="True">
<Binding.ValidationRules>
<model:FullTimeValidationRule ValidationStep="RawProposedValue"/>
</Binding.ValidationRules>
</Binding>
</xcctrl:AutoSelectTextBox.Text>
</xcctrl:AutoSelectTextBox>
<!--UpdateSourcetrigger allows user to edit values thru invalid states before committing to change-->
</DataTemplate>
</xcdg:CellEditor.EditTemplate>
Regards
Peter Wilson