Skip to content

Commit fab46cf

Browse files
authored
ReadMe updated
1 parent 4918dac commit fab46cf

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
The SfListView allows customizing the item appearance like rounded corner by using the Frame layout in the ItemTemplate property. By defining the CornerRadius property of frame layout, you can perform the rounded corner for items.
44

55
```
6-
<ContentPage xmlns:syncfusion="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms">
7-
<ContentPage.Content>
8-
<syncfusion:SfListView x:Name="listView" ItemSize="60" ItemsSource="{Binding customerDetails}">
9-
<syncfusion:SfListView.ItemTemplate>
10-
<DataTemplate>
11-
<Frame x:Name="frame" CornerRadius="10" >
12-
<StackLayout>
13-
<Label Text="{Binding ContactName}" />
14-
<Label Text="{Binding ContactNumber}" />
15-
<Label Text="{Binding ContactType}" />
16-
</StackLayout>
17-
</Frame>
18-
</DataTemplate>
19-
</syncfusion:SfListView.ItemTemplate>
20-
</syncfusion:SfListView>
21-
</ContentPage.Content>
22-
</ContentPage>
6+
<StackLayout Spacing="0" Padding="0,5,0,0" BackgroundColor="LightGray">
7+
<sync:SfListView x:Name="listView"
8+
AutoFitMode="Height"
9+
ItemSpacing="5,0,5,10"
10+
IsScrollBarVisible="False"
11+
ItemsSource="{Binding BookInfo}">
12+
<sync:SfListView.ItemTemplate>
13+
<DataTemplate>
14+
<Frame Padding="5,5,5,5" CornerRadius="7" HasShadow="False" BackgroundColor="White">
15+
<Grid>
16+
...
17+
</Grid>
18+
</Frame>
19+
</DataTemplate>
20+
</sync:SfListView.ItemTemplate>
21+
</sync:SfListView>
22+
</StackLayout>
2323
```
2424

25-
To know more about ListView appearance, please refer our documentation [here](https://help.syncfusion.com/xamarin/sflistview/viewappearance#rounded-corner-on-items)
25+
To know more about ListView appearance, please refer our documentation [here](https://help.syncfusion.com/xamarin/sflistview/viewappearance#rounded-corner-on-items)

0 commit comments

Comments
 (0)