I want to leave a space after line 0 and line 1, and I want to come up with line 2 and line 3


I have a production I created horizontally in SFListView. I want to leave a space after line 0 and line 1, and I want to come up with line 2 and line 3.
current view


1 Reply

MK Muthu Kumaran Gnanavinayagam Syncfusion Team March 26, 2018 12:34 PM UTC

Hi Alperen, 
 
We have checked the reported query “Need for ItemSpacing between GridLayout items” from our side. If you have loaded the line 0 and line 1 image inside the same ItemTemplate, then you can modify its Parent element(In our case, we have considered Grid) properties such as RowSpacing, HorizontalOptions property to achieve the required layout. 
 
We would like to let you know that you can adjust the spacing between items by specifying the desired values in the ItemSpacing property of SfListView as like below code example. 
 
Code Example[XAML]: 
<syncfusion:SfListView ItemsSource="{Binding Gallerynfo}" ItemSize="100" 
                     Orientation="Horizontal" SelectionMode="None" 
                     Grid.Row="1" 
                     ItemSpacing="0,30,0,30"> 
 
 
For your reference, we have attached the sample and you can download if from the below link. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu kumaran. 


Loader.
Up arrow icon