Stick Layout in Xamarin Forms to bottom

后端 未结 7 1120
星月不相逢
星月不相逢 2020-12-12 19:11

I\'m making an application in Xamarin forms but I have some trouble sticking a layout to the bottom of the device. I thought an AbsoluteLayout would work, but I cannot grasp

7条回答
  •  执念已碎
    2020-12-12 19:32

    it's just that simple

    AbsoluteLayout.SetLayoutFlags(footer, AbsoluteLayoutFlags.YProportional | AbsoluteLayoutFlags.WidthProportional);
    AbsoluteLayout.SetLayoutBounds(footer, new Rectangle(0, 1, 1, AbsoluteLayout.AutoSize));
    absoluteLayout.Children.Add(footer);
    

提交回复
热议问题