public async Task DismissPopup()
{
try
{
if (_popupView != null)
{
await Task.WhenAll(_popupView.FadeTo(0), _backdrop.FadeTo(0));
if (_backdrop.Children.Contains(_popupView))
{
_backdrop.Children.Remove(_popupView);
}
if (Children.Contains(_backdrop))
{
Children.Remove(_backdrop);
}
_popupView = null;
}
_content.InputTransparent = false;
}
catch (Exception e)
{
Log.Error(e);
}
}
}