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
1320
Change the error message in XamNumericEditor
posted

Hello,

I'm using the XamNumericEditor and using the mask field to validate the input:

<igWPF:XamNumericEditor Text="{Binding Path=Text,Mode= TwoWay}" IsEnabled="{Binding IsNew, FallbackValue=False}"  Mask="{}{number:1-4}" ValueType="{x:Type sys:Int32}" PromptChar=""/>

Due to localization issues I have to modify the error message that appears when the input isn't valid (for example when 0 is entered). How can I do this?

  • 5600
    Offline posted

    Hi,

    You can easily customize the error message using the method described here

    This line of code will change the error message, if you type for example 0:

     Infragistics.Windows.Editors.Resources.Customizer.SetCustomizedString("LMSG_ValueConstraint_MinInclusive", "[Your Text Here.]");

    Do not hesitate to ask, if you have other questions.

    Regards,

    Anastas