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

Viewcell contents is not taking the full page width within Windows Phone platform.

$
0
0

Howdy,

I'm trying to figure how to make my Viewcell contents to take the full width of the page within the Windows Phone platform. This behavior is not happening within the Android client.

The full source code can be found on my github:
https://github.com/TomWalkerCodes/Xamarin.Forms-HowToBBQ

Gird xaml code just in case:

Grid Padding="20">
    <Grid.ColumnDefinitions>
      <ColumnDefinition  Width="Auto" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
    </Grid.RowDefinitions>

How I'm defining my ListView xaml

<ListView Grid.Row="1" Grid.Column="0"  HorizontalOptions="FillAndExpand" x:Name="list" ItemsSource="{Binding Recipes}" ItemTapped="OnItemSelected">
      <ListView.ItemTemplate>
        <DataTemplate>
          <ViewCell>
            <StackLayout Orientation="Horizontal" Spacing="25">
              <Image Source="{Binding Image}"
                     WidthRequest="40"
                    HeightRequest="40" />
              <Label Font = "15"  HorizontalOptions="FillAndExpand" Text="{Binding Name}"/>
            </StackLayout>
          </ViewCell>
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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