Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1945
Suppress validation message box
posted

Hi

When I add value constraint to a field and the input value is not valid a message box gets prompted to the user. Is there a way to suppress that message box? The asterisk indicating the error is already sufficient.

  • 28407
    Verified Answer
    posted

    Hi Mheusser,

     You could set the InvalidBehaviourPropety to RetainValue.

     Here is a style:

     

    <Style TargetType="{x:Type igEditors:XamNumericEditor}">    

             <Setter Property="InvalidValueBehavior" Value="RetainValue"/>

                <Setter Property="ValueConstraint">

                    <Setter.Value>

                        <igEditors:ValueConstraint  MinExclusive="17"/>    

                      </Setter.Value>

                </Setter>

            </Style>

      Sincerely,
     Matt
    Developer Support Engineer