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
470
xamnumericinput control and xammaskedinput controls mask property assignment
posted

Hi

I have a xamnumeric input control and i have to apply mask property for allow user to number between (-180.0000 to +180.0000) with sign.

and also i have to apply mask for time with format (hh:mm) format.

Can you please provide me the sample code for the mask for above. if there are any post or sample where I can find different mask styles for different datatypes

Thanks in advance

Parents
No Data
Reply
  • 5600
    Suggested Answer
    Offline posted

    Hi,

    You can find more info about masks here.

    About the xamNumeric where you want to enter values between -180,000 and 180,000 you can use the ValueConstraints.

    For example you can use:

    <ig:XamNumericInput >

    <ig:XamNumericInput.ValueConstraint>

    <ig:ValueConstraint MinInclusive/Exclusive="-180000" MaxInclusive/Exclusive="180000" />

    <ig:XamNumericInput.ValueConstraint>

    </ig:XamNumericInput>

    If you have any other questions, do not hesitate to ask.

    Regards,

    Anastas

Children
No Data