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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reopening Problem

Thread ID:

Created:

Updated:

Platform:

Replies:

143993 Apr 12,2019 05:17 PM UTC Apr 26,2019 10:51 AM UTC Xamarin.Forms 3
loading
Tags: SfPopup
Burak
Asked On April 12, 2019 05:17 PM UTC

Hello 

     We are using SFPopup control on our application, inside of button click we have code below

         private void BtnMenu_Clicked(object sender, EventArgs e)
          {
             popup.IsOpen = true;
          }

     inside of popup control have another button if we click this button popup is closing button click code below

        private void BtnAnim_Clicked(object sender, EventArgs e)
        {
            popup.IsOpen = false;

            Device.BeginInvokeOnMainThread(async () =>
            {
                await Navigation.PushModalAsync(new pAnimasyon(objId), true);
            });
        }

     if we clicked again BtnMenu menu button throwing error message like this 

     Unhandled Exception:

     System.NullReferenceException: Object reference not set to an instance of an object.

     please help if can thank you so much

Subburaj Pandian Veluchamy [Syncfusion]
Replied On April 15, 2019 12:42 PM UTC

Hi Burak,  
   
Thank you for contacting Syncfusion Support.  
   
We have checked and we can able to replicate the mentioned that the issue “Throws exception while setting PopupLayout IsOpen as true and opening Popup on second time” and logged defect report for the same. The fix for this issue will be included in 2019 Volume 1 Service Pack 1 release which is estimated to be available by mid of May 2019. We appreciate your patience until then.  
   
You can track the status of this report through the following feedback link, 
  
  
Regards,
Subburaj Pandian V  


Naweed Akram
Replied On April 26, 2019 08:19 AM UTC

I have same issue. I am using v 17.1.0.42.

This is my code:

    <sfPopup:SfPopupLayout x:Name="pupServices" IsOpen="{Binding DisplayPopUp}">
        <sfPopup:SfPopupLayout.PopupView>
            <sfPopup:PopupView HeaderTitle="Popup">
                <sfPopup:PopupView.ContentTemplate>
                    <DataTemplate>
                        <Label Text="Sample text for now."
                               BackgroundColor="White"
                               TextColor="Black" />
                    </DataTemplate>
                </sfPopup:PopupView.ContentTemplate>
            </sfPopup:PopupView>
        </sfPopup:SfPopupLayout.PopupView>
        <sfPopup:SfPopupLayout.Content>
            <Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">


                <!-- Categories ListView -->
                <ListView x:Name="lstCategories"
              ItemsSource="{Binding Categories, Mode=OneWay}"
              VerticalOptions="Fill"
              HorizontalOptions="Fill">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <ViewCell>
                                <sfBorder:SfBorder
                BorderColor="{StaticResource GridRowBoxColor}"
                HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand"
                BorderWidth="0"
                Margin="8,8,8,0"
                CornerRadius="6">

                                    <Grid HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand"
                RowSpacing="0"
                ColumnSpacing="0"
                Padding="0">


                                        <Label Text="Some content here." />


                                    </Grid>

                                </sfBorder:SfBorder>

                            </ViewCell>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>

            </Grid>

        </sfPopup:SfPopupLayout.Content>
    </sfPopup:SfPopupLayout>


Regards
Naweed

Subburaj Pandian Veluchamy [Syncfusion]
Replied On April 26, 2019 10:51 AM UTC

Hi Naweed, 
 
As we mentioned in our previous update, we already logged issue report for the issue “Throws exception while setting PopupLayout IsOpen as true and opening Popup on second time” and working on this issue fix. This issue fix will be included in our upcoming 2019 Volume 1 SP1 release which is estimated to be available by mid of May 2019. We appreciate your patience until then. Please let us know, if you need patch earlier.  
 
Regards,
Subburaj Pandian V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon