We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Separator between Items?

Is there a built in separator for sflisview to display between items and groupitems, just like XF listview has? 

1 Reply

MK Muthu Kumaran Gnanavinayagam Syncfusion Team July 24, 2017 03:53 AM UTC

Hi Emil, 
  
Thank you for contacting Syncfusion Support. 
  
Currently we do not provide support for Separator as like in Xamarin forms ListView. But you can achieve your requirement by adding a frame for SfListView ItemTemplate to provide separator between Group items and List items. Please refer the code below for more information. 
  
Code Example[XAML]: 
<sync:SfListView x:Name="listView" ItemSize="70">      
  <sync:SfListView.ItemTemplate> 
    <DataTemplate x:Name="ItemTemplate"  x:Key="ItemTemplate"> 
      <Grid>  
        <Grid.RowDefinitions> 
          <RowDefinition Height="*" /> 
          <RowDefinition Height="1" /> 
        </Grid.RowDefinitions> 
         <Grid>  
          <Grid.RowDefinitions> 
            <RowDefinition Height="50" /> 
          </Grid.RowDefinitions> 
        <Label Text="{Binding SongTitle}" FontSize="18" /> 
       </Grid> 
      <Frame Grid.Row="1" OutlineColor="#E4E4E4" HasShadow="True" HeightRequest="1"/> 
     </Grid> 
    </DataTemplate> 
 </sync:SfListView.ItemTemplate> 
</sync:SfListView> 
 
For your reference we have attached the working sample link below, 
  
  
Please let us know if you require further assistance. 
  
Regards, 
G.Muthu Kumaran.

Loader.
Up arrow icon