Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

ListView separator

$
0
0

I must be doing something wrong. I've got a ListView in the latest Xamarin Forms. There is no separator. When I follow the instructions here:

https://developer.xamarin.com/guides/cross-platform/xamarin-forms/user-interface/listview/customizing-list-appearance/#Row_Separators

and put markup to change the separator color, or SeparatorVisibility="Default" it crashes (on Android). Its as if those properties are not there anymore on the newest version of Xamarin forms

Here's my markup

<ListView.ItemTemplate>
  <DataTemplate>
    <ViewCell>
      <StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal" BackgroundColor="#5C85FF">
        <Label Text="{Binding Name}" YAlign="Center" Font="Medium" TextColor="Black" />

         <StackLayout Padding="5,0,0,0" VerticalOptions="StartAndExpand" Orientation="Vertical" >
          <StackLayout Orientation="Horizontal">
             <Label Text="Start:" YAlign="Center" Font="Medium" TextColor="Black"/>
            <Label Text="{Binding start}" YAlign="Center" Font="Medium" TextColor="Black"/>

          </StackLayout>  
          <StackLayout Orientation="Horizontal">
             <Label Text="End:" YAlign="Center" Font="Medium" TextColor="Black"/>
            <Label Text="{Binding end}" YAlign="Center" Font="Medium" TextColor="Black"/>

          </StackLayout>  
          <StackLayout Orientation="Horizontal">
             <Label Text="Room:" YAlign="Center" Font="Medium" TextColor="Black"/>
             <Label Text="{Binding Room}" YAlign="Center" Font="Medium" />

          </StackLayout>                                                      
         </StackLayout>

     </StackLayout>         
    </ViewCell>      
  </DataTemplate>
</ListView.ItemTemplate>


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>