Focus on IT Recommend

Home > android - Custom shared content between all pages with Xamarin.Forms Pages and MvvmCross

android - Custom shared content between all pages with Xamarin.Forms Pages and MvvmCross



I am developing an application with CrossPlatform XamarinForms1.3 and I would use MvvmCross. With MvvmCross Presenters, I can use XamarinForms pages instead of native views. With XamarinForms Renderers I can customize each control on each platform.

So I want to make a custom base view on each platform. For example, I would like to display same layout between different pages. A further customization of Xamarin.Forms MasterDetailPage/ContentPage.

For that, for this I have architected my project as well :

- Core
    - Pages
        - BasePage (Base UI Page, 
 d between different pages - it is just simple class) - FirstPage : BasePage - SecondPage : BasePage - ... - Droid - Renderers - BasePageRenderer : PageRenderer (UI Page layout on Android) - Windows Universal App - Renderers - BasePageRenderer : PageRenderer (UI Page layout on Windows)

I know that Xamarin Renderers are: Views for Android, PhoneApplicationPage for Windows Phone, iOS UIView. I would like to customize the Android View, the PhoneApplicationPage and iOS UIView.

On Android, I have find that : Creating Custom Views, I go to follow steps and try to find a solution.

Recommend:MVVMCross with Xamarin.Forms and MasterDetail

rtial class App : MvxFormsApp{ public App() : base() { // The root page of your application DependencyService.Register<AppContext>(); InitializeComponent(); // MainPage = new MasterDetail();

android xamarin mvvmcross xamarin.forms
  this question
edited Feb 13 '15 at 11:16 asked Feb 11 '15 at 20:01 Andrés Talavera 178 2 13      Possibly, I can turn it into an activity that implements a Drawer or open another activity (but that would actvities 2) –  Andrés Talavera Feb 12 '15 at 13:35      I have no idea what you are asking –  Stuart Feb 12 '15 at 15:48      I just clarify my question. As such, I want to mix Xamarin Forms, Xamarin Renderers (to custom Xamarin Forms Pages Layout) and MvvmCross Presenters (to use Xamarin Forms Pages) –  Andrés Talavera Feb 13 '15 at 17:11


Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Recommend:mvvm - MvvmCross: Hybrid Xamarin.Forms and Android Activity Application

xaml tied to its ViewModel MainViewModel.cs which is displayed first. I have a FirstView.axml located in the droid project along with its activity. The associated ViewModel is located in the Core project along side the MainViewModel and is


------splitte line----------------------------