diff --git a/README.md b/README.md index de1f2ea..5eb859a 100644 --- a/README.md +++ b/README.md @@ -1 +1,46 @@ **[View document in Syncfusion .NET MAUI Knowledge Base](https://www.syncfusion.com/kb/13166/how-to-add-a-rounded-corner-for-net-maui-listview-sflistview-items)** + +## Sample + +```xaml + + + + + + + + + + + . . . + . . . + + + + + + + +ViewModel.cs: + +public ObservableCollection ContactsInfo { get; set; } + +public ContactsViewModel() +{ + GenerateInfo(); +} + +internal void GenerateInfo() +{ + ContactsInfo = new ObservableCollection(); + + Random r = new Random(); + for (int i = 0; i < 30; i++) + { + var contact = new Contacts(CustomerNames[i], r.Next(720, 799).ToString() + " - " + r.Next(3010, 3999).ToString()); + contact.ContactType = contactType[r.Next(0, 4)]; + ContactsInfo.Add(contact); + } +} +```