Inheritance: ViewModelBase
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ViewModel = new MainViewModel();

            Navigate.SetCommand("TouchUpInside", ViewModel.Goto);
            Button2.SetCommand("TouchUpInside", ViewModel.GotoWithParameter);

            Navigate.TouchUpInside += Navigate_TouchUpInside;
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            if (!_isInitialized)
            {
                var nav = new MvvmLightNavigationExtension.Droid.NavigationServiceExtension();
                nav.Initialize();
                nav.Configure("Page1", typeof(MainActivity));
                nav.Configure("Page2", typeof(PageActivity));
                nav.Configure("Page3", typeof(Page3Activity));

                var builder = new ContainerBuilder();
                builder.RegisterInstance<INavigationService>(nav);
                builder.RegisterInstance<INavigationServiceExtension>(nav);

                var container = builder.Build();

                ServiceLocator.SetLocatorProvider(() => new AutofacServiceLocator(container));

                _isInitialized = true;

                ViewModel = new MainViewModel();
            }

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            _button = FindViewById<Button>(Resource.Id.MyButton);
            _button.SetCommand("Click", ViewModel.Goto);

            _button = FindViewById<Button>(Resource.Id.MyButton2);
            _button.SetCommand("Click", ViewModel.GotoWithParameter);

            _button.Click += _button_Click;
        }