diff --git a/README.md b/README.md index 644951b..f2dde66 100644 --- a/README.md +++ b/README.md @@ -1 +1,42 @@ **[View document in Syncfusion .NET MAUI Knowledge Base](https://www.syncfusion.com/kb/13202/how-to-add-a-separator-between-items-in-net-maui-listview-sflistview)** + +## Sample + +```xaml + + + + + + + + + + + . . . + . . . + + + + + +C#: + +public class SeparatorVisibilityConverter : IValueConverter +{ + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + var listView = parameter as SfListView; + + if (value == null) + return false; + + return listView.DataSource.DisplayItems[listView.DataSource.DisplayItems.Count - 1] != value; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } +} +``` \ No newline at end of file