I am unable to put point value in field - WPF

Viewed 27

Hi there I want to pint value in the field like I am using KMBT so if I put 2.5m, it should be 2500000 but my code is not working :

<StackPanel Grid.Row="6" Grid.Column="4" Orientation="Vertical" Name="clmProgramSubjectPremium">
   <Label Content="Program Subject Premium" FontWeight="Bold" />
   <tuc:TrippsTextEdit x:Name="txtProgramSubjectPremium" 
      InvalidValueBehavior="AllowLeaveEditor"   
      SelectAllOnGotFocus="True" 
      HorizontalContentAlignment="Center" 
      MaskSaveLiteral="False" 
      MaskUseAsDisplayFormat="False" MaskType="RegEx" Mask="[0-9. ]{0,16}[kKmMbBtTuU ]?" 
      DisplayFormatString="N0"
      IsCurrencyEnabled="True" 
      CurrencyCD="{Binding Layer.CurrencyCD}"
      EditValue="{Binding ProgramSubjectPremium, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  
      MaskIgnoreBlank="False" 
      LostFocus="txtProgramSubjectPremium_LostFocus"
      IsReadOnly="{Binding Path=IsControlEnabled,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl},Converter={StaticResource IsReadOnlyConverter},UpdateSourceTrigger=PropertyChanged}">
   </tuc:TrippsTextEdit>
</StackPanel>
0 Answers
Related