Tritium UI

TritiumNumericEntry

แก้ไขเลขทศนิยมพร้อมขอบเขตที่ไม่บังคับ รูปแบบ และธงความถูกต้องที่ผูกได้

TritiumNumericEntry

คุณสมบัติหลัก

  • ผูกทศนิยมที่เป็นค่าว่างได้สองทาง
  • ปฏิเสธค่าที่อยู่นอก Minimum และ Maximum
  • อนุญาตช่องว่างเมื่อ AllowNull เป็นจริง
  • จัดรูปแบบการแสดงด้วยสตริงรูปแบบตัวเลขของ .NET
  • อ่าน IsValid เพื่อดูว่าข้อความปัจจุบันเป็นตัวเลขในช่วงหรือไม่
  • เลือกเปิดการตอบสนองแบบสั่นหรือเสียงตอนยืนยัน

แพลตฟอร์ม

Android, iOS, Mac Catalyst และ Windows 10 เวอร์ชัน 19041 ขึ้นไป (.NET 10 MAUI)

API หลัก

  • Value . The number, two-way and nullable.
  • Minimum . Lowest accepted value; Maximum is the highest.
  • NumberFormat . .NET format string used to display the value.
  • AllowNull . When true, an empty box stores null.

ตัวอย่างพื้นฐาน

ประกาศเนมสเปซนี้บนหน้า

xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumNumericEntry Value="42.5" Minimum="0" Maximum="100" NumberFormat="0.00" />

เพิ่มแหล่งแพ็กเกจจากไลเซนส์ แล้วอ้างอิงแพ็กเกจที่มีคอนโทรลนี้ แพ็กเกจเหล่านี้ไม่อยู่ในแกลเลอรี NuGet สาธารณะ

Ask Tritium

How-to help and product fit for FleetPro, Tritium UI, and Tritium Reporting.

Ask how to use a feature, or tell us your company, platforms, team size, and use case. Pricing and upgrades go to sales.

Product fit
Contact sales

Search the FAQ