We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to fire commands of the footer buttons in the SfPopup Layout

In SfPopupLayout for Xamarin.Forms you can handle the click of the accept and decline buttons in the footer area, by writing custom commands derived from ICommand. You can then perform any desired operation in the Execute override of your custom command.

 

Refer the following code example to write a custom command.

 

Assign the custom commands to the footer buttons as follows,

 

We have prepared a sample where we have loaded a popup in button click in the main page. Clicking on the accept button of the popup navigates to the next page and clicking on the decline button dismisses the popup.

We have internally fixed the issue “ Accept and Decline button commands not firing”, and the fix will be available from the 2018 Volume 1 Service Pack 1 release.
However use the assemblies from the below link until then to overcome the above mentioned issue.


Custom assemblies link : http://www.syncfusion.com/downloads/support/directtrac/general/ze/Popup_dll672297334

The above assembly should replace the dll in the below mentioned location.            

  

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\pcl\Syncfusion.SfPopupLayout.XForms.dll     

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\android\Syncfusion. SfPopupLayout.XForms.dll    

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\android\Syncfusion. SfPopupLayout.XForms.Android.dll    

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\ios-unified\Syncfusion. SfPopupLayout.XForms.dll   

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\ios-unified\Syncfusion. SfPopupLayout.XForms.iOS.dll     

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\uwp\Syncfusion. SfPopupLayout.XForms.dll   

{Syncfusion Installed location}\Essential Studio\16.1.0.24 \Xamarin\lib\uwp\Syncfusion. SfPopupLayout.XForms.UWP.dll 

Disclaimer: Please note that we have created this assembly for the version 16.1.0.24 specifically to resolve the accept button and decline button commands not fired issue.

You can download the working sample with the necessary references added from the below link.
http://www.syncfusion.com/downloads/support/directtrac/general/ze/SamplePopup481625673


 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
8606 03/19/2018 03/19/2018 Xamarin.Forms SfPopup 4.5.1
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon