Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How can i access objects from code behind?

$
0
0

I have created a new ContentPage in Xamarin.Forms. What I want to do is layout my contentpage in xaml. So if I put a button on the xaml, I want to access the button in the .cs code behind.

I am trying to do :

But when I run I get a compile error saying : Property content is null or is not IEnumerable in InitializeComponent()

Any help?


Viewing all articles
Browse latest Browse all 77050

Trending Articles