Xamarin MVVM app events/commands not working in MacOS app

Copper Contributor

I have a Xamarin Forms app that uses MVVM model and ICommand for handling control actions.  This app currently works on iOS, Android, and WPF.  I've added a MacOS project to my solution and implemented the necessary Main, AppDelegate, etc.  While the UI loads, the button on the opening screen never fires any events.  I've added a click event as well and never receive that either.  When debugging, the CanExecute methods of my ICommand implementation are getting called and always return true.  But the Execute commands never get called when clicking on the button (nor do the OnClick event).  Any suggestions?  I'm assuming I'm missing some type of linkage needed to make Xamarin work in Mac but I can't find anything online as to what else is needed.  My code follows all of the examples I've found online.  I even used the code that showed removing the story board and generating the main window in code instead and it still doesn't work.  Any help would be greatly appreciated.

0 Replies