Forum Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to use a control declare in mainpage.xaml

shaywshayw Member ✭✭

Very newbie in Xamarin
In the mainpage.xaml i declared a label

<Label x:Name="label1" BackgroundColor="SteelBlue" TextColor="#BAD312" >

I would like to use the "label1" in code in mainpage.xaml.cs ?

Best Answer


  • shaywshayw Member ✭✭

    That's it

Sign In or Register to comment.