使用WPF的C1NumericBox控件,Format="N2",N2就是保留2位小数
<c1:C1NumericBox Width="50" AllowNull="False" Minimum="0" Format="N2" Value="{Binding WMK,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
不写就是纯数值
<c1:C1NumericBox Width="50" AllowNull="False" Minimum="1" Value="{Binding CTI,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />