For the SomeField below, I have defined in my code a public const for the min (e.g. 45) and max (e.g. 34000).
Is there some way I can bind the Mask Value to those constants instead of having numbers hardcoded in the xaml (e.g. 45-34000)..
<igDP:Field Name="SomeField" DataType="{x:Type sys:UInt16}" Label="SomeField"> <igDP:Field.Settings> <igDP:FieldSettings EditAsType="{x:Type sys:UInt16}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamNumericEditor}" > <Setter Property="Mask" Value="{}{number:45-34000}" /> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings></igDP:Field>
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionalities you want. Basically I used Converter to return the appropriate Mask. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks. Solves my issue perfectly, which was to not have the literal value in two places.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.