How to use a control declare in mainpage.xaml xamarin

Shay Wilner 1,746 Reputation points
2020-10-04T17:45:47.547+00:00

Hi

Very newbie in Xamarin android
In the mainpage.xaml i declared a label
<Label x:Name="label1" BackgroundColor="SteelBlue" TextColor="#BAD312" >

        </Label>

i would like to use the "label1" in the mainpagexaml.cs ,how to proceed ?

Thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,878 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful