Acr.UserDialogs: How to show the .axml notification?

xamauserxamauser Member ✭✭

I use Xamarin.Android and MVVMCross. I need to show the notification.

I installed Acr.UserDialogs and add the following to App.cs:

Mvx.RegisterSingleton<IUserDialogs>(() => UserDialogs.Instance);

I know that I can show the simple message adding to ViewModel the following:

 public ICommand EnterCommand => new MvxCommand(() => {
        Mvx.Resolve<IUserDialogs>().Alert("message");
    });

But I'd like to show my own notification with image. I created .axml file with layout for the notification. Is it possible?

Thank you for your help!

Answers

  • FabricioBertaniFabricioBertani USMember ✭✭

    If you want to display a custom dialog from axml file you should use Rg.Plugins.Popup

  • xamauserxamauser Member ✭✭

    @FabricioBertani said:
    If you want to display a custom dialog from axml file you should use [Rg.Plugins.Popup]

    Is this solution suitable for full Xamarin, not Xamarin Forms?

  • FabricioBertaniFabricioBertani USMember ✭✭

    If you want to display a custom dialog from axml file you should use Rg.Plugins.Popup

    Are you using platform specific xamarin or form?

  • xamauserxamauser Member ✭✭

    @FabricioBertani said:
    If you want to display a custom dialog from axml file you should use [Rg.Plugins.Popup]

    Are you using platform specific xamarin or form?

    I don't use Forms, I use Xamarin.Android with MVVMCross

Sign In or Register to comment.