public CustomViewSample()
 {
     viewModel           = new CustomViewViewModel();
     model               = new CustomViewModel();
     this.BindingContext = new ImageListModel(viewModel);
     InitializeComponent();
 }
 void LoadFromStream(ImageSource source, CustomViewViewModel viewModel, CustomViewModel model)
 {
     if (Device.RuntimePlatform.ToLower() == "ios")
     {
         Navigation.PushAsync(new NavigationPage(new CustomViewHomePage(source, viewModel)));
     }
     else if (Device.RuntimePlatform.ToLower() == "uwp")
     {
         Navigation.PushAsync(new CustomViewHomePage(source, viewModel));
     }
     else
     {
         Navigation.PushModalAsync(new CustomViewHomePage(source, viewModel));
     }
 }
 void LoadFromStream(ImageSource source, CustomViewViewModel viewModel, CustomViewModel model)
 {
     if (Device.OS == TargetPlatform.iOS)
     {
         Navigation.PushAsync(new NavigationPage(new CustomViewHomePage(source, viewModel)));
     }
     else if (Device.OS == TargetPlatform.Windows)
     {
         Navigation.PushAsync(new CustomViewHomePage(source, viewModel));
     }
     else
     {
         Navigation.PushModalAsync(new CustomViewHomePage(source, viewModel));
     }
 }