คุณสมบัติหลัก
- ผูกลำดับชั้นที่มีลูก หรือรายการแบนที่มีรหัสและรหัสพ่อ
- แสดงป้าย คำบรรยาย และรูปที่ไม่บังคับบนแต่ละโหนด
- วางต้นไม้จากบนลงล่างหรือซ้ายไปขวาด้วยเส้นเชื่อมตั้งฉาก
- ขยายทั้งหมด ยุบทั้งหมด หรือยุบถึงระดับ และเลือกโหนด
- บีบเพื่อซูม และใช้ล้อเมาส์บน Windows
- เน้นชื่อและเลื่อนไปยังรายการที่ตรงด้วย QuickFind
- ส่งออกแผนภูมิเป็นสตรีมหรือไฟล์ PNG
แพลตฟอร์ม
Android, iOS, Mac Catalyst และ Windows 10 เวอร์ชัน 19041 ขึ้นไป (.NET 10 MAUI) ซูมด้วยล้อเมาส์ใช้ได้บน Windows
API หลัก
- ItemsSource . The nodes, either a tree or a flat parent/child list.
- Orientation . TopDown or LeftRight.
- ChildrenPath . Property that holds child objects; use IdPath and ParentIdPath for a flat list.
- ItemTapped . Fires with the bound item and the chart node.
ตัวอย่างพื้นฐาน
ประกาศเนมสเปซนี้บนหน้า
xmlns:org="clr-namespace:Tritium.Maui.OrgChart;assembly=Tritium.Maui.OrgChart"
<org:TritiumOrgChartView ItemsSource="{Binding People}"
LabelPath="Name"
SubtitlePath="Title"
ChildrenPath="Reports"
Orientation="TopDown" /> เพิ่มแหล่งแพ็กเกจจากไลเซนส์ แล้วอ้างอิงแพ็กเกจที่มีคอนโทรลนี้ แพ็กเกจเหล่านี้ไม่อยู่ในแกลเลอรี NuGet สาธารณะ