文章分類/Infragistics
如果希望XamNumericEditor只接受0以上的整數值,請設定ValueType為Int32與設定ValueConstraint MinInclusive為0。
xmlns:sys="clr-namespace:System;assembly=mscorlib"..... <igEditors:XamNumericEditor ValueType="{x:Type sys:Int32}"> <igEditors:XamNumericEditor.ValueConstraint> <igEditors:ValueConstraint MinInclusive="0" /> </igEditors:XamNumericEditor.ValueConstraint> </igEditors:XamNumericEditor>
Reference
ValueType 屬性 (ValueEditor)
https://jp.infragistics.com/help/wpf/infragisticswpf.editors~infragistics.windows.editors.valueeditor~valuetype
ValueConstraint 屬性
https://jp.infragistics.com/help/wpf/infragisticswpf.editors~infragistics.windows.editors.valueeditor~valueconstraint
MinInclusive 屬性
https://jp.infragistics.com/help/wpf/infragisticswpf.editors~infragistics.windows.editors.valueconstraint~mininclusive