I've been using the following error adorner template for a long time now:
<ControlTemplate x:Key="ErrorAdornerTemplateStyle" TargetType="{x:Type Control}">
<Grid ClipToBounds="False" >
<Border BorderBrush="Red" BorderThickness="2" Margin="-1"
ToolTip="{Binding ElementName=adornedElement, Path=AdornedElement.(Validation.Errors).CurrentItem.ErrorContent }">
<AdornedElementPlaceholder Name="adornedElement" />
</Border>
<Polygon Points="15,15 15,0 0,0"
Fill="Red"
HorizontalAlignment="Right"
VerticalAlignment="Top"
ToolTip="{Binding ElementName=adornedElement, Path=AdornedElement.(Validation.Errors).CurrentItem.ErrorContent }"/>
</Grid>
</ControlTemplate>
... and it works at run-time just fine (as far as I can tell).
However, after a flurry of upgrades to VS and WPF and NET Standard 2 in the past month, I've noticed that the intellisense in my syles xaml file is giving me the following error for the CurrentItem
identifier:
The property 'CurrentItem' was not found in type 'ReadOnlyObservableCollection'.
Is this just a nuisance VS bug or is VS alerting me to some kind of change in the WPF subsystem that I need to adapt to?