visual studio 2019 MAC - program doesn't provide the event handler RRS feed

  • Question

  • User388949 posted


    I wonder if anyone can help,

    I loaded visual studio 2019 MAC the latest stable version with all the options today on a Mac today with latest Xcode and latest Mac OS and I have two issues,

    1- I create a new blank solution in Xamarin,

    I add a button as below:

    xcml file

    Sunday, September 8, 2019 4:09 AM

All replies

  • User388949 posted

    sorry I think some of the code got deleted above, pls see images of what's happening, thanks

    Sunday, September 8, 2019 4:18 AM
  • User369979 posted

    the problem is when is created the program doesn't provide the event handler, nor on if I create it, etc etc the (Intellisense) or the autocomplete or whatever doesn't work as above. It seems VS for Mac lacks of this feature of Visual Studio 2019. You have to create an event manually in the cs file:

    public void MyHandler(object sender, EventArgs args)
        // your code

    Then this event name could be displayed in the XAML.

    2- the second problem is that on a PC when you run the emulator and then do changes to the xcml file, you can always press refresh on the emulator and see the changes on the Mac I only see the stop button but there is no refresh to reload the app on the emulator, I'm not sure if you are talking about the restart button in the Visual Studio 2019 on Windows. VS for Mac is another IDE on Mac machine it has its own appearance so it doesn't have the restart button. You can stop debugging and click the run button again to see the changes.

    Monday, September 9, 2019 5:45 AM
  • User388949 posted

    hi LandLuud thank you for your response looks like neither work in Visual studio 2019 hopefully in the future they will implement it have a good day :)

    Monday, September 9, 2019 6:32 PM
  • User369979 posted

    In Visual Studio 2019 you could click F12 to auto-generate the corresponding event for you.

    Friday, October 11, 2019 6:41 AM
  • User388949 posted

    it doesnt seem to work in VS2019 on macbook pro, hopefully it will get worked out on future release of VS Thanks LandLu!!

    Sunday, October 13, 2019 12:43 AM
  • User388949 posted

    I was looking at some utube videos with VS on Mac and I dont think they have it working on Mac yet. It worked under Xamarin studio for Mac previously until it got sold to VS but not any more. (or not yet)

    Thank you LandLu

    Sunday, October 13, 2019 7:03 PM
  • User369979 posted

    VS for Mac lacks this feature. But we can use F12 to automatically generate events on Visual Studio 2019 for Windows. Different operations on different environments.

    Monday, October 14, 2019 6:21 AM
  • User388949 posted

    yes, I so miss the VS for windows, its so rich in features and much better built, but had to get a new system as the emulators took so long and as a mac is needed anyway for the ios app dev, in the end decided to just a get a macbook pro, still think windows is much better and more user friendly,

    ..but us VS mac users will have to percevier to endevour as they say, lol have a good one LandLu

    Friday, October 18, 2019 5:08 AM