Xamarin.Forms Shell

Rebai Hamida
1 min readMar 6, 2019

--

Shell was introduced in Xamarin.Forms 4.0 Preview and it supposed to be an evolution of MasterDetailPage, NavigationPage, and TabbedPage.

It’s added as a template in Visual Studio 2019 Preview and RC and can be added in any template by adding a feature flag before Xamarin.Forms initialization in MainActivity.

Android:

global::Xamarin.Forms.Forms.SetFlags(“Shell_Experimental”, “Visual_Experimental”, “CollectionView_Experimental”, “FastRenderers_Experimental”);

global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

iOS:

global::Xamarin.Forms.Forms.SetFlags(“Shell_Experimental”, “Visual_Experimental”, “CollectionView_Experimental”, “FastRenderers_Experimental”);

global::Xamarin.Forms.Forms.Init();

This benefit of using Shell:

  • Unified design and beautifully added themed UI with features like Material Design.
  • Modern navigation UI using a Flyout control.
  • Optimized Navigation using routes
  • Better Performance!

--

--

Rebai Hamida
Rebai Hamida

Written by Rebai Hamida

Senior Cloud Application Architect, Microsoft MVP in Developer Technologies, MCT, Technical writer, Speaker

No responses yet