Hi Øystein,
Thank you for contacting Syncfusion support.
Based on the provided information, we have checked your requirement of “Handling Popup layout position based on the requirement” in Xamarin.Forms can be achieved using the ShowRelativeToView property of popupLayout. Using this property, you can position the popup layout based on the necessity whether in Right, Top and Bottom.
We have prepared simple sample based on your requirement, please find the sample by the following link.
In the sample, we have disabled both Header and Footer, and we maintained Content alone by setting the ContentTemplate. In the template, we have added button and label with the values. By setting position as Right in the ShowRelativeToView of Popup layout, positioned the layout in the Right.
Please refer the following code example,
[C#]
private void ClickToShowPopup_Clicked(object sender, EventArgs e)
{
popupLayout.ShowRelativeToView(layout, RelativePosition.AlignToRightOf, 0, 0);
}
|
We hope this helps. Please let us know, if you have any query.
Regards,
Subburaj Pandian V