Giter Site home page Giter Site logo

Comments (16)

acaliaro avatar acaliaro commented on May 22, 2024

Have you init the plugin in AppDelegate?

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

@VikasN0204 Hello friend. Please, give me source code or link of you repository

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@acaliaro , Yes.I have added Popup.Init() in Appdelegate. I follow all instruction mentioned in the example.
@rotorgames , Sorry I cant give the original code. But I can create a sample project and give it to you which is similiar to the my project. It will fine for you.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

@rotorgames , Sorry I cant give the original code. But I can create a sample project and give it to you which is similiar to the my project. It will fine for you.

@VikasN0204 Ok. Write me when create repository.

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames
https://github.com/VikasN0204/FormsiOSAndroid

I am new to Github. I have uploaded my repository. If you unable to get my repository,let me know, I will sent it again.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

@VikasN0204 Your repository is empty. Please add files in your repository

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames ,
https://github.com/VikasN0204/FormsiOSAndroid >> bizzmapp.rar. Its a sample App.

Can you try once again.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

@VikasN0204 This error is fix in 1.0.0.pre5.

Error throw because Content in PopupPage is empty.
You need create view and add is in Content before call PushPopupAsync

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames ,
If i upgrade to 1.0.0.pre5, still do i need to create view.
I am not getting you about creating view. I have 2 xaml page i.e on 1 xaml's click button i am calling 2nd xaml page which is similar to you sample project.

I am new to xamarin. Could you elaborate . Thanks.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

@VikasN0204 This ticket only for Rg.Plugins.Pupup issues. You need stady Xamarin.Forms documentation before.

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames ,
Thanks . Do i still need to add view, if i upgrade to 1.0.0.pre5 ( i have 0.0.17 currently). Because when i refer your sample and run that at my end, it worked. It is a simple code and no view created. So i got confused and wanted to know regarding to it. As i have to call the firstPopuppage from Mainpage. I have integrated plugin to all projects.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

@VikasN0204 You code is ok. You need create Content or update `1.0.0-pre5' for error not throw.

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames , Thanks, Ok where do i need to create Content . My CategoryVideoView is content page & its on its button click , i am calling below method.

        private async void RightPopup()
        {
            try
            {
                var page = new RightPopupPage();              
                await Navigation.PushPopupAsync(page);
            }
            catch (Exception ex)
            {
                string mssg = ex.Message;
                //throw;
            }

        }

and RightPopUp page is inherited from PopupPage. Even PopupPage itself inherited from content Page.
PopupPagexaml.cs

public partial class RightPopupPage : PopupPage //: ContentPage
{
public RightPopupPage()
        {
            //InitializeComponent();
            this.BackgroundColor = Color.FromHex("#2B78E4");
        }
}

I am still clueless ? Do you mean inside xaml, i have to add <Content.page> </Content.page> tag around my controls.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 22, 2024

I am still clueless ? Do you mean inside xaml, i have to add tag around my controls.

Yes or do:

public RightPopupPage()
        {
            //InitializeComponent();
            this.BackgroundColor = Color.FromHex("#2B78E4");

           Content = new ContentView();
        }
}

But if you use xaml page, you need invoke InitializeComponent in constructor.

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames Thanks. I will check at my end.

from rg.plugins.popup.

VikasN0204 avatar VikasN0204 commented on May 22, 2024

@rotorgames , After including your code, the project doesn't not throw any error but also doesn't show up the popup at all. I can only see gray screen.

from rg.plugins.popup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.