- Home
- Forum
- Xamarin.Forms
- Many popup in same page
Many popup in same page
Thank you for the update.
We have prepared a sample a four requirement and in our sample we initialized multiple popup in XAML. For more details please refer to the below code example and sample.
Code Example,
|
<sfPopup:SfPopupLayout x:Name="popup1">
<sfPopup:SfPopupLayout.PopupView>
<sfPopup:PopupView>
<sfPopup:PopupView.ContentTemplate>
<DataTemplate>
<Label Text="This is Popup1"></Label>
</DataTemplate>
</sfPopup:PopupView.ContentTemplate>
</sfPopup:PopupView>
</sfPopup:SfPopupLayout.PopupView>
</sfPopup:SfPopupLayout>
<sfPopup:SfPopupLayout x:Name="popup2">
<sfPopup:SfPopupLayout.PopupView>
<sfPopup:PopupView>
<sfPopup:PopupView.ContentTemplate>
<DataTemplate>
<Label Text="This is Popup2"></Label>
</DataTemplate>
</sfPopup:PopupView.ContentTemplate>
</sfPopup:PopupView>
</sfPopup:SfPopupLayout.PopupView>
</sfPopup:SfPopupLayout>
<sfPopup:SfPopupLayout x:Name="popup3">
<sfPopup:SfPopupLayout.PopupView>
<sfPopup:PopupView>
<sfPopup:PopupView.ContentTemplate>
<DataTemplate>
<Label Text="This is Popup3"></Label>
</DataTemplate>
</sfPopup:PopupView.ContentTemplate>
</sfPopup:PopupView>
</sfPopup:SfPopupLayout.PopupView>
</sfPopup:SfPopupLayout> |
Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Popup_Demo_151137831638164.zip
Regards,
Karthik Raja
Hello,
Both examples given here are for 'Displaying popup on the go' which does not support
popupLayout.ShowAtTouchPoint();
So It seems like 'Multiple popups' and showing pop up at touch points are not possible.
Is this true?
I am stuck please help.
Thanks,
Anand
Hi Sharma,
|
Regarding “Both examples given here are for 'Displaying popup on the go' which does not support popupLayout.ShowAtTouchPoint()“
|
Yes, ShowAtTouchPoint is not supported when Displaying popup on the fly. We have mentioned in our user guidelines documentation as note under position popup at touch point topic.
UG link: https://help.syncfusion.com/xamarin/popup/popup-positioning#position-popup-at-touch-point
|
||
|
Regarding “'Multiple popups' and showing pop up at touch points are not possible. Is this true” |
You can achieve your requirement ”Displaying multiple popup in single page” as like below code snippet.
Code snippet: XAML:
C#
We have attached a runnable sample based on your requirement for your reference. Please have a look at this sample and revert to us with more details about requirement with illustration image or video if we misunderstood your requirement.
|
Regards,
Suja
Attachment: GettingStarted_d900f76e.zip
Hi Sharma,
Let us know if you require further assistance , will be happy to assist you.
Regards,
Suja
- 7 Replies
- 5 Participants
-
EC Emmanuel Cesaire FOKO
- Feb 1, 2020 08:17 AM UTC
- Aug 8, 2022 12:45 PM UTC