Rg.plugins.popup: Use Popup with FreshMvvM Framework

Created on 22 Jul 2016  路  18Comments  路  Source: rotorgames/Rg.Plugins.Popup

Hi,
I want to use Rg.Plugins.Popup Component with FreshMvvm framework.

To trigger the popup page, you have mentioned to call the Rg.Plugins.Popup.Extensions.NavigationExtension.PushPopupAsync through Navigation class.
But we want use this feature from the Page Model Class(FreshBasePageModel).

Thanks you so much for your support.
Best Regards,
Kathirvelu M

question

Most helpful comment

I will create plugin for FreshMvvm soon.

All 18 comments

@KathirveluM Hey. You have to realize the navigation for FreshMvvm

@rotorgames ,
The same is posted in Freshmvvm framework and responded as "it's likely to be a issue with the PopUps, not to do with FreshMvvm."
https://github.com/rid00z/FreshMvvm/issues/78

Yes i accept, but seeking for your suggestion to use.

@KathirveluM Rg.Plugins.Popup, it is dependent only on Xamarin.Forms. For all other libraries, you should write a wrapper yourself.

@KathirveluM Did you find solution for this? I am also using freshmvvm and cant figure out how to navigate from viewmodel

No, i haven't found solution to use this.
So i customized the Content Page "Scrollview" Layout as popup dialog.

I will create plugin for FreshMvvm soon.

@rotorgames , any update on the plugin to support FreshMvvm!!

I would also be interested in such a plugin.

Hi everyone. I'm busy to fix importan bugs, when I fix them I will create FreshMvvm wrapper. Thank you.

I would definitely look forward to it.

Its possible to invoke Reverseinit method after Pop Popup page.

@rotorgames
Any update on the plugin to support FreshMvvm ??

@KathirveluM
Could you please share your customized popup dialog which you integrated with freshmvvm??

Not sure if this is a good approach, but I created my own FreshNavigationContainer (could also be with the other FreshMVVM Navigation Containers), and modified the PushPage method. Works nicely for me.

public virtual Task PushPage(Xamarin.Forms.Page page, FreshBasePageModel model, bool modal = false, bool animate = true)
{
if (modal)
{
if (page is PopupPage)
{
return Navigation.PushPopupAsync(page as PopupPage, animate);
}
else
{
return Navigation.PushModalAsync(CreateContainerPageSafe(page), animate);
}
}

        return Navigation.PushAsync(page, animate);
    }

@dotnetpete Hi would like to know how your Custom FreshNavigationContainer look like exactly for this, am facing the same issue of using popup with FreshMvvm and no luck but trying to use your included code above. Thanks

A bit late to the party but if anyone wants the support please try this: https://github.com/libin85/FreshMvvm.Popup/ and let me know your feedback

@libin85 your library works perfectly although you cannot pass data back through PopPopupPageModel (meaning ReverseInit is also not called) as well as OnViewAppearing not being called in the previous page model.

A bit late to the party but if anyone wants the support please try this: https://github.com/libin85/FreshMvvm.Popup/ and let me know your feedback

if getting this error with Rg.Plugins.Popup 1.2.0.223 , Xamarin Forms 4.2.0.848062
System.InvalidOperationException
Message=The page has not been pushed yet or has been removed already
on await CoreMethods.PushPopupPageModel(true);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luis-barreira picture luis-barreira  路  5Comments

mshenoy83 picture mshenoy83  路  4Comments

luis-barreira picture luis-barreira  路  5Comments

Himanshuvc picture Himanshuvc  路  5Comments

Phenek picture Phenek  路  6Comments