Tritium UI

TritiumPivotGrid

เปลี่ยนรายการแบนเป็นเมทริกซ์แถว คอลัมน์ และค่า พร้อมผลรวม

TritiumPivotGrid

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

  • กำหนดฟิลด์ให้แถว คอลัมน์ และค่า แล้วสรุปด้วยผลรวม จำนวน ค่าเฉลี่ย ต่ำสุด หรือสูงสุด
  • แสดงผลรวมแถว ผลรวมคอลัมน์ และผลรวมย่อย
  • เรียงตามป้ายแถวหรือคอลัมน์ข้อมูล จากน้อยไปมากหรือมากไปน้อย
  • จัดรูปแบบตัวเลข และเลือกข้อความที่แสดงเมื่อเซลล์ว่าง
  • ขยายและยุบกลุ่ม
  • ฝังรายการฟิลด์ หรือใช้คอลเลกชันฟิลด์เดียวกันร่วมกับ TritiumPivotFieldList แยก
  • เลือกเซลล์และจัดการ CellTapped
  • ส่งออกเมทริกซ์เป็น CSV หรือ PNG
  • นี่คือ pivot ของรายการแบน ไม่ใช่คิวบ์ OLAP

แพลตฟอร์ม

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

API หลัก

  • ItemsSource . The flat rows to reshape.
  • RowFields . Fields that become row headers; ColumnFields and ValueFields complete the layout.
  • ShowRowTotals . Adds a total column; ShowColumnTotals and ShowSubtotals are the matching switches.
  • CellTapped . Fires with the pivot cell and its row and column indexes.

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

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

xmlns:pivot="clr-namespace:Tritium.Maui.Pivot;assembly=Tritium.Maui.Pivot"
<pivot:TritiumPivotGrid ItemsSource="{Binding Sales}"
                     ShowRowTotals="True"
                     ShowColumnTotals="True"
                     ValueFormat="0.##" />

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