VS 2019 for Mac fails to auto create event handler from XAML file

400 views Asked by At

At first this feature was working, but all the sudden if I add a Clicked property to -for example- the ToolbarItem, it does want to autocomplete the event handler for the cs file, but when I click enter I get the error in the screenshot.

I have tried to find the answer in various forms, but could not find it, that's why I decided to create this post.

<TabbedPage.ToolbarItems>
        <ToolbarItem Text="Add" Clicked="ToolbarItem_Clicked"/>
    </TabbedPage.ToolbarItems>

Screenshot showing the "New Event Handler" dropdown

Screenshot of the error it gives me after I press enter. "Could not create event handler"

As shown in the screenshot it does not give me any reason as to -why- it can't create the event handler in the xaml.cs file.

It used to work fine so maybe I messed something up. Any help would be appreciated :)

0

There are 0 answers