View gist:02a743d0d013262d35a0de83eb900c79
protected override bool OnBackButtonPressed() | |
{ | |
if (BindingContext is IConfirmNavigationAsync) | |
{ | |
if (BindingContext is ViewModelBase vm) | |
{ | |
vm.ConfirmGoBackCommand.Execute(); | |
} | |
return true; | |
} |
View PlatformImageExtension
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Xaml; | |
namespace Foobar.Helpers | |
{ |