I am trying to bind AbsoluteLayout.LayoutBounds
in XAML, but i'm not sure exactly how to get it to work. Anyone know how to accomplish this?
Here is my code so far:
<AbsoluteLayout>
<BoxView BackgroundColor="Red" HeightRequest="40" AbsoluteLayout.LayoutBounds="{Binding ProgessBounds}" AbsoluteLayout.LayoutFlags="PositionProportional,WidthProportional" />
</AbsoluteLayout>
public Rectangle ProgressBounds {
get {
return new Rectangle (0.5f, 0.5f, MyWidthVariable, AbsoluteLayout.AutoSize);
}
}