Hi,
This piece of code works like a charm in Android but it doesn't in iOS. The ListView is positioned at the top of RelativeLayout instead of below the Stacklayout. If i remove the StackLayout, then the ListView is positioned below Image in both platforms.
What I'm missing?
<RelativeLayout x:Name="dLayout">
<Image Source="Dashboard_Photo" x:Name="tImage"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"/>
<StackLayout x:Name="gLayout" Padding="8" BackgroundColor="White"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
RelativeLayout.YConstraint= "{ConstraintExpression Type=RelativeToView, ElementName=tImage, Property=Height, Factor=1}">
<Label Text="QUARTERLY GOAL"/>
<ProgressBar></ProgressBar>
</StackLayout>
<ListView
RelativeLayout.YConstraint= "{ConstraintExpression Type=RelativeToView, ElementName=gLayout, Property=Height, Factor=1}">
</ListView>
</RelativeLayout>
Thanks.