I am utilizing xamarin forms TableView. I only have 1 section however the tableview keeps going and I dont see anyway to hide it. Is there a way to hide, what I assume is a footer? Below is how it looks with only 1 section. This behavior occurs in both IOS and Droid.
I did attempt a custom renderer but to no avail.
My xaml is below.
<StackLayout Orientation="Vertical" Spacing="0">
<TableView x:Name="tableRoot" VerticalOptions="Start" HasUnevenRows="true" Margin="0" Intent="Settings" BackgroundColor="#e8f3f9">
<TableRoot>
<TableSection Title="Details">
<ViewCell Tapped="DirectionsTapped">
<StackLayout Orientation="Horizontal" VerticalOptions="Center" BackgroundColor="White">
<Image Source="phone.png" Margin="5,0" HorizontalOptions="Center">
</Image>
<Label Text="Get Directions" VerticalOptions="Center" HorizontalTextAlignment="Start">
</Label>
</StackLayout>
</ViewCell>
<ViewCell Tapped="phoneClicked">
<StackLayout Orientation="Horizontal" VerticalOptions="Center" BackgroundColor="White">
<Image Source="phone.png" Margin="5,0" HorizontalOptions="Center">
</Image>
<Label Text="Call" VerticalOptions="Center" HorizontalTextAlignment="Start">
</Label>
<Label Text="{Binding Phone}" VerticalOptions="Center">
</Label>
</StackLayout>
</ViewCell>
<ViewCell Tapped="Handle_Clicked">
<StackLayout Orientation="Horizontal" VerticalOptions="Center" BackgroundColor="White">
<Image Source="feedback.png" Margin="5,0" HorizontalOptions="Center">
</Image>
<Label Text="Leave Feedback" VerticalOptions="Center" HorizontalOptions="Start">
</Label>
</StackLayout>
</ViewCell>
<ViewCell Tapped="WebsiteClicked">
<StackLayout Orientation="Horizontal" VerticalOptions="Center" BackgroundColor="White">
<Image Source="feedback.png" Margin="5,0" HorizontalOptions="Center">
</Image>
<Label Text="Website" VerticalOptions="Center" HorizontalOptions="Start">
</Label>
</StackLayout>
</ViewCell>
</TableSection>
</TableRoot>
</TableView>
</StackLayout>
Custom Renderer IOS
protected override void OnElementChanged(ElementChangedEventArgs<TableView> e)
{
base.OnElementChanged(e);
Control.SectionFooterHeight = 0;
Control.TableFooterView = new UIView(CGRect.Empty);
}