This is a follow-up question this question.
I followed the example provided for the question above in order to show a RadPopup programmatically from a ViewModel. However, I am running into a specific issue on iOS where the popup truncates the content at the bottom.
My CreatePopupContent method body looks like this:
private View CreatePopupContent()
{
VerticalStackLayout stack = new VerticalStackLayout()
{
Spacing = 10,
Padding = new Thickness(20),
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Fill,
BackgroundColor = /*(Color)Application.Current.Resources.GetValueOrNull("Gray100")*/ Colors.LightGray,
WidthRequest = 350
};
Label titleLabel = new Label()
{
Text = /*popupTitle*/"Lorum ipsum",
};
stack.Children.Add(titleLabel);
Label messageLabel = new Label()
{
Text = /*popupMessage*/ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
};
stack.Children.Add(messageLabel);
var dismiss = new Button { Text = "Ok", Command = this.ClosePopupCommand, CommandParameter= "Ok" };
var lorum= new Button { Text ="Lorum", Command = this.ClosePopupCommand, CommandParameter = "Lorum" };
var ipsum= new Button { Text = "Ipsum", Command = this.ClosePopupCommand, CommandParameter = "Ipsum" };
stack.Children.Add(dismiss);
stack.Children.Add(lorum);
stack.Children.Add(ipsum);
Border border = new Border()
{
StrokeShape = new RoundRectangle
{
CornerRadius = new CornerRadius(20)
},
Content = stack,
VerticalOptions = LayoutOptions.Fill,
};
return border;
}
Is there any way to fix this or has anyone encountered this issue before? It's brand new to me.