文章分類/

Infragistics|Ultimate UI WPF|XamNumericEditor-想要能夠只輸入0以上的整數值

尚無瀏覽量
2023-04-14 更新

infragistics log

如果希望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

快速跳轉目錄

✦ 群昱 AccessSoft 你的全面軟體解決方案 ✦

身為全球眾多知名軟體在台灣合作夥伴,歡迎諮詢你需要的軟體服務!

Picture of 軟體專家
軟體專家

群昱作為全球知名軟體推薦合作夥伴,致力於提供更多軟體解決方案給你!

更多軟體新知

立即詢價

請留下完整資訊,以便我們提供精確的服務內容給你。

詢價資訊