C# ComponentOne Silverlight numericbox最大值属性无法正常工作

C# ComponentOne Silverlight numericbox最大值属性无法正常工作,c#,xaml,silverlight-5.0,componentone,C#,Xaml,Silverlight 5.0,Componentone,我在Silverlight 5中有一个ComponentOne numericbox,我希望范围从0.000000000到999.99999999。因此,我相应地设置了最大值和最小值,但当我运行应用程序时,它允许我输入1000.00000000。有人知道这是为什么吗?有办法解决这个问题吗?他是我在xaml中的代码: <c1:C1NumericBox SelectOnFocus="Always" x:Name="interestrateNumericbox" AllowNull="True

我在Silverlight 5中有一个ComponentOne numericbox,我希望范围从0.000000000到999.99999999。因此,我相应地设置了最大值和最小值,但当我运行应用程序时,它允许我输入1000.00000000。有人知道这是为什么吗?有办法解决这个问题吗?他是我在xaml中的代码:

<c1:C1NumericBox SelectOnFocus="Always" x:Name="interestrateNumericbox" 
AllowNull="True" Minimum="0.00000000" Maximum="999.99999999" Increment="0" 
Format="N8" ShowButtons="False" RangeValidationMode="Always" 
Value="{Binding Path=Model.InterestRate, Mode=TwoWay, 
UpdateSourceTrigger=PropertyChanged, 
Converter={StaticResource NullableDoubleToDouble}}" Height="26" 
HorizontalAlignment="Left" Width="308" VerticalAlignment="Bottom"     
d:LayoutOverrides="Height" />

建议您尝试使用控件的构建,看看是否仍然面临任何问题

下一步,如果输入的第一个数字是1〃,您的解决方法是再次设置最大值。以下代码供您参考:

void C1NumericBox1_ValueChanged(object sender, C1.Silverlight.PropertyChangedEventArgs<double> e)
        {

            if (e.NewValue == 1)
            {
                C1NumericBox1.Maximum = 999.99999999;

            }
        }

我应该补充一点,numbericbox是组件一的控件,它可能与浮点值的表示有关。您试图使用的分辨率太小,我猜表示999.99999999的位与表示1000.00000000的位相同