I have a custom error template for my TextBox. Something like this:
<Style TargetType="{x:Type TextBox}" x:Key="ErrorTemplateStyle">
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTemplate>
<StackPanel Orientation="Vertical">
<Border BorderBrush="Orange" BorderThickness="1">
<AdornedElementPlaceholder />
</Border>
<TextBlock Text="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors).CurrentItem}" />
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
My TextBox is placed inside of DataGrid's cell. Now when error occurs I want size of that cell to be changed to accomodate new template for my TextBox. Any ideas how this behavior can be achieved?