Stick Layout in Xamarin Forms to bottom

后端 未结 7 1128
星月不相逢
星月不相逢 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:41

    You can use VerticalOptions to send layout to bottom.

    var stacklayout = new stackLayout()
    {
         VerticalOptions = LayoutOptions.EndAndExpand
         Children = {
          //your elements
         }
    }
    

提交回复
热议问题