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
65
Handling Percent values
posted

Currently I have a XamMaskedInput defined as follows:

<ig:XamMaskedInput x:Name="mskRate"
                               Value="{Binding Balances.Rate, UpdateSourceTrigger=LostFocus}"
                               Grid.Column="1"
                               Grid.Row="4"
                               Mask="{}{double:2.4}"
                               Format="p4"
                               IsReadOnly="{Binding DataContext.ReadOnlyMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type views:AccountInReviewEditView}}}"
                               Style="{StaticResource ReadOnlyMaskEdit}"
                               Margin="5"
                               HorizontalContentAlignment="Right"/>

When it receives a value of .2000, it displays correctly as 20.0000%.  However when I go to edit the value to 10.0000%, it takes the value as 1000.0000%.  How do I get the control to accept an edit of 10.0000% and store the value back in model as .100000?