public MainPage() : base(false, new MainPageViewModel()) //disabled navigationbar and sets viewModel { InitializeComponent(); // SetCommand("CustomCmd", CustomCmdMth); //setter CallCommand("CustomCmd", false); //you can access xaml properties while call from in ctor // SetCommand("BtnCallCommand", BtnCallFromCmd); //setter MvvmMessagingCenter.SubcribeIncomingEvent(this, "testMessage"); }