Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use Xamarin.Forms 4.0 with Shell and Prism framework

Can you use Xamarin Forms 4.0 new Shell with Prism? I'm looking for examples or some documentation

like image 451
user1633146 Avatar asked Jun 27 '19 13:06

user1633146


People also ask

What is xamarin forms shell application?

Xamarin. Forms Shell reduces the complexity of mobile application development by providing the fundamental features that most mobile applications require, including: A single place to describe the visual hierarchy of an application. A common navigation user experience.


1 Answers

The short answer is sort of and it depends on what from Prism you want to use. You can of course use the ViewModelLocator to inject your ViewModels, but you really don't have a way passing parameters to initialize anything. So none of the Navigation interfaces for example would work, nor would your page get the benefit of the PageBehaviorFactory applying the behaviors that we apply. Ultimately the initial implementation of Shell was completely unusable for every MVVM framework (even if you roll your own).

The Forms team though has been working with us and there is a solution on the horizon. I cannot say when exactly that will land, however in Prism terms if you look at the Shell Support issue, you'll see that it's marked for support in Prism 8.0 which is the current vNext version being worked on.

Also note that the work on this issue has been live streamed on https://twitch.tv/dansiegel and can be viewed for VOD on YouTube https://youtube.com/dansiegel

like image 52
Dan Siegel Avatar answered Oct 03 '22 20:10

Dan Siegel