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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Separator between Items?

Thread ID:

Created:

Updated:

Platform:

Replies:

131645 Jul 20,2017 10:43 PM UTC Jul 24,2017 03:53 AM UTC Xamarin.Forms 1
loading
Tags: SfListView
Emil
Asked On July 20, 2017 10:43 PM UTC

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

Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;