- Home
- Forum
- Xamarin.Forms
- Popup simple not wonrking
Popup simple not wonrking
I am trying to implement a simple pop up created on the fly, I already followed the steps of the documentation, but I do not understand what the problem is.
using Syncfusion.XForms.PopupLayout;
SfPopupLayout popupLayout;
public ClientexCobrador()
{
InitializeComponent();
popupLayout = new SfPopupLayout();
}
event: popupLayout.Show();
SIGN IN To post a reply.
5 Replies
RE
Reza
February 21, 2020 07:01 PM UTC
In your Android MainActivity.cs, have you initialized SfPopupLayout?
protected override void OnCreate(Bundle bundle)
{
...
global::Xamarin.Forms.Forms.Init(this, bundle);
Syncfusion.XForms.Android.PopupLayout.SfPopupLayoutRenderer.Init();
LoadApplication(new App());
}
DA
David
February 21, 2020 07:10 PM UTC
What a shame, I read everything but what is necessary to enable it for android. Sorry and thank you very much!
FP
Farjana Parveen Ayubb
Syncfusion Team
February 24, 2020 06:41 PM UTC
Hi David,
Thanks for the update.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.
Regards,
Farjana Parveen A
In your Android MainActivity.cs, have you initialized SfPopupLayout?protected override void OnCreate(Bundle bundle) { ... global::Xamarin.Forms.Forms.Init(this, bundle); Syncfusion.XForms.Android.PopupLayout.SfPopupLayoutRenderer.Init(); LoadApplication(new App()); }
This issue still exists.
Just found this post and manually adding this Init() in the Android project does seem to fix it.
The Init() call was automatically added in the iOS project.
The Init() call was automatically added in the iOS project.
Your online documentation for Getting Started with this control does not mention this configuration for Android, but does mention setup for iOS and UWP.
Perhaps updating the documentation and the installer can both be fixed to prevent anyone else from wasting time tracking this down?
Perhaps updating the documentation and the installer can both be fixed to prevent anyone else from wasting time tracking this down?
KK
Karthikraja Kalaimani
Syncfusion Team
November 30, 2020 06:30 PM UTC
Hi Joe,
It’s mandatory intializing the SfPopupLayout renderer for android platform, if you are using the SfPopupLayout as On the go. Please refer to the below UG document.
https://help.syncfusion.com/xamarin/popup/getting-started#android
Regards,
Karthik Raja
It’s mandatory intializing the SfPopupLayout renderer for android platform, if you are using the SfPopupLayout as On the go. Please refer to the below UG document.
https://help.syncfusion.com/xamarin/popup/getting-started#android
Regards,
Karthik Raja
SIGN IN To post a reply.
- 5 Replies
- 5 Participants
-
DA David
- Feb 21, 2020 06:00 PM UTC
- Nov 30, 2020 06:30 PM UTC