0

I have added a validation rule to wpf text box. Whenever validation rule fails, i am showing error message in separate text block.

Additionally as default behavior, the text box border color color changes to red when validation is failed. I want to remove this behavior.

I have looked at customizing the control template, and customizing the error template. I am not able to delete the behavior.

Marc
  • 16,170
  • 20
  • 76
  • 119
Tilak
  • 30,108
  • 19
  • 83
  • 131

1 Answers1

0

Small modification to Meleaks answer. Thanks to Willem for providing the link.

<ControlTemplate x:Key="ComboBoxValidationErrorTamplate">
    <DockPanel>
            <AdornedElementPlaceholder />          
    </DockPanel>
</ControlTemplate>
Community
  • 1
  • 1
Tilak
  • 30,108
  • 19
  • 83
  • 131