Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Margin is not available

hey guys

Just wanted to check if we can use margin/padding in Xamarin Forms xaml page? I tried setting padding/spacing but it always throws exception.



  • MitchMilamMitchMilam USMember ✭✭✭

    @VinodPrajapati can you show us your code?

  • <ListView.ItemTemplate>


            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
              <Image Source="{Binding ProfileImage}"
                     HeightRequest="40" VerticalOptions="Center" HorizontalOptions="Start"/>
              <StackLayout Orientation="Vertical" Grid.Column="1"
                           HorizontalOptions="StartAndExpand" Padding="0, 0, 0, 0">
                <Label Text="{Binding Name}"
                       HorizontalOptions="FillAndExpand" />
                        <Label Text="{Binding College}" 
                        <Label Text="{Binding Location}" 
                         <Label Text="{Binding Points}"

  • ItalKItalK USMember ✭✭

    Anyone know the answer?

Sign In or Register to comment.