Tritium UI

TritiumSignaturePad

เก็บลายเซ็นด้วยนิ้วหรือตัวชี้ แล้วส่งออกเป็น PNG

TritiumSignaturePad

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

  • วาดเส้นหนึ่งเส้นหรือมากกว่าบนแผ่น
  • ตั้งสีหมึกและความหนาเส้น
  • อ่าน IsEmpty ก่อนรับฟอร์ม
  • ล้างแผ่นจากปุ่ม
  • ส่งออกเส้นเป็นสตรีม PNG ตามขนาดที่เลือก
  • เลือกเปิดการตอบสนองแบบสั่นหรือเสียงเช่นเดียวกับตัวแก้ไขอื่น

แพลตฟอร์ม

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

API หลัก

  • StrokeColor . Ink color.
  • StrokeWidth . Ink thickness.
  • IsEmpty . True when the pad has no strokes.
  • ToPngStreamAsync . Renders the signature to a PNG stream.

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

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

xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumSignaturePad x:Name="Pad" HeightRequest="200" StrokeWidth="2" />

เพิ่มแหล่งแพ็กเกจจากไลเซนส์ แล้วอ้างอิงแพ็กเกจที่มีคอนโทรลนี้ แพ็กเกจเหล่านี้ไม่อยู่ในแกลเลอรี 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