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
1690
XamMaskedInput and NullText
posted

Hi,

we would like to show null text with a different style (eg gray/italics ) in order to inform user that this is an information message.

 

How can we accomplish this behavior?

Thank you in advance,

Michael

Parents
  • 22015
    posted

    Hello Michael,

     Thank you for your post. I have been looking into your issue and created a small sample for you. In the sample application I am setting a style for the Foreground property of the XamMaskedInput and set the property to grey. Then I am handling the ValueChanged event and check if the value equals the value set for the NullText property. If yes the foreground color is set to grey, if not it is set to black.

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    MaskedInput_NullTekstStyle.zip
Reply Children
No Data