Xamarin.Forms - InitializeComponent doesn't exist when creating a new page

前端 未结 30 2303
不知归路
不知归路 2021-01-30 12:36

I\'m using Visual Studio to try out Xamarin.Forms. I\'m trying to follow the guide: http://developer.xamarin.com/guides/cross-platform/xamarin-forms/xaml-for-xamarin-forms/getti

30条回答
  •  梦毁少年i
    2021-01-30 13:05

    Try adding a x:Name="..." on the xaml page... Nothing else worked for me - but after adding the x:Name attribute on some of the elements on the page the error dissapeared (most of the times - I still get it sometimes). I use the latest build (1.5.0.6447) of Xamarin.Forms...

    XAML don't work on shared projects - it only works in portable projects...

提交回复
热议问题