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
205
XamMaskedEditor Date mask
posted

Hi!

I'm trying to use a month/year mask xamMaskedEditor. I tried as someone suggested dd/yyyy but it haven't worked for me!

How do i do it?

Parents
No Data
Reply
  • 8607
    Offline posted

    Hello skyline_560,

    mm/yyyy (ex. 03/2011) is a mask that would work in WPF, but it is not supported in the Silverlight xamMaskedEditor.

    Right now, the xamMaskedEditor can only take masks for numbers and characters.

    I would suggest submitting a feature request for a Silverlight "xamDateTimeEditor", which I agree would be very useful.

    For now, you can use a simple numeric mask like ##/####.  You can then do some validation either on a button click or on the LostFocus event to make sure that the entered values are reasonable (ex. month is between 01 and 12 and year is in a set range).


    Elizabeth Albert
    Localization Engineer

Children