I have a page where I want to have a title that always appears at the top, and buttons that always appear at the bottom. contents in the middle scroll.
I thought this would be easy to do by doing the following:
StackLayout outer = new StackLayout(); StackLayout inner = new StackLayout();//with all of the content added ScrollView scroll = new ScrollView(); outer.Children.Add(headerLabel);//non-scrolling scroll.Content = inner; outer.Children.Add(scroll); //scrolling outer.Children.Add(button); //non-scrolling
The headerLabel key and the button remain in their original position, but the contents scroll to the top of the page at the top of the title bar (but below / below the button below).
I am sure that it worked correctly, but I canβt change anything.
Does anyone have any ideas on why this is happening?
source share