public static async Task PushPopUp(string page, params object[] param) { switch (page) { case PopUpKeys.Mensaje: MessageViewModel.GetInstance().Mensaje = param[0].ToString(); await IsPopUpInstanced(new MessagePopUp()); break; case PopUpKeys.Cargando: CargandoViewModel.GetInstance().Mensaje = param[0].ToString(); await IsPopUpInstanced(new CargandoPopUp()); break; } }
public CargandoPopUp() { InitializeComponent(); BindingContext = CargandoViewModel.GetInstance(); }