DataGridCell Validation.ErrorTemplate ignored
问题 I'm trying to set the Validation.ErrorTemplate of the DataGridCells, here's the xaml code: <Style x:Key="{x:Type DataGridCell}" x:Uid="dataGridCellErrorTemplate" TargetType="{x:Type DataGridCell}"> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate > <Border BorderBrush="Green" BorderThickness="2" ToolTip="Heidenei"></Border> </ControlTemplate> </Setter.Value> </Setter> <!-- following line only for demonstration that the setter is working ... --> <Setter Property=