Skip to content

Commit 5e12279

Browse files
committed
Updated README.md file
1 parent c345c57 commit 5e12279

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
This example demonstrates how to set margin and padding to Xamarin.Forms listview.
44

5+
## Sample
6+
7+
```xaml
8+
<Grid BackgroundColor="DarkBlue" >
9+
<syncfusion:SfListView x:Name="listView" SelectionMode="None" BackgroundColor="LightGray"
10+
ItemSize="70" Margin="15" Padding="25"
11+
ItemsSource="{Binding contactsinfo}">
12+
<syncfusion:SfListView.GroupHeaderTemplate>
13+
<DataTemplate>
14+
<ViewCell>
15+
<Label Text="{Binding Key}" FontAttributes="Bold" FontSize="24"/>
16+
</ViewCell>
17+
</DataTemplate>
18+
</syncfusion:SfListView.GroupHeaderTemplate>
19+
20+
<syncfusion:SfListView.ItemTemplate>
21+
<DataTemplate>
22+
<ViewCell>
23+
<ViewCell.View>
24+
<Grid x:Name="grid" >
25+
<code>
26+
. . .
27+
. . .
28+
<code>
29+
</Grid>
30+
</ViewCell.View>
31+
</ViewCell>
32+
</DataTemplate>
33+
</syncfusion:SfListView.ItemTemplate>
34+
</syncfusion:SfListView>
35+
</Grid>
36+
```
37+
538
See [How to set a margin and padding to the Xamarin.Forms listview?](https://www.syncfusion.com/kb/9958/how-to-set-a-margin-and-padding-to-the-xamarin-forms-listview) for more details.
639

740
## Requirements to run the demo

0 commit comments

Comments
 (0)