DataGridTextColumn with Validation.HasError style

Mar 2, 2010 at 12:17 AM

Hello, I tried to use the following style with .net 4.0 DataGridTextColumn.
This gives me XamlParseException 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.'

All I want is to show that error tooltip on the cell. Any sugestions?

<Style x:Key="CellEditStyle" TargetType="{x:Type TextBox}">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Padding" Value="0"/>
                <Trigger Property="Validation.HasError" Value="true">
                    <Setter Property="ToolTip"
                            Value="{Binding RelativeSource={RelativeSource Self},