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. Image for the cookie policy date

Reopening Problem

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

3 Replies

SP Subburaj Pandian Veluchamy Syncfusion Team 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  



NA Naweed Akram 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


SP Subburaj Pandian Veluchamy Syncfusion Team 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 


Loader.
Up arrow icon