Back to Devexpress

How to: Customize the Appearance of the Editor's Error Tooltip

wpf-7426-controls-and-libraries-data-editors-examples-how-to-customize-the-appearance-of-the-editors-error-tooltip.md

latest544 B
Original Source

How to: Customize the Appearance of the Editor's Error Tooltip

  • Aug 01, 2019

The following example shows how to customize the visual representation of an editor’s error tooltip.

xaml
<dxe:DateEdit MaxValue="12/13/2010" MinValue="01/15/2008">
    <dxe:DateEdit.ErrorToolTipContentTemplate>
        <DataTemplate>
            <TextBlock Text="Value is out of borders" Foreground="Red" FontSize="18"/>
        </DataTemplate>
    </dxe:DateEdit.ErrorToolTipContentTemplate>
</dxe:DateEdit>