what does this code make? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what does this code make?

Hello, today I wanted to learn xamarin, so I watched this video on https://docs.microsoft.com/de-de/xamarin/get-started/first-app/?pivots=win-vs2017, but I dont get the code at 3:34 - 3:53 this here: ((button)sender) can someone please explain how this line works, and why it can't be written like in wpf like this: xaml code: <Button x:Name="hi" Clicked="Button_Clicked"/> C# code: private void Button_Clicked(object sender, EventArgs e) { count++; hi.Content = count; } thanks for answers

15th Jul 2020, 9:01 PM
Michael
1 Answer
+ 1
I think a button with a dynamic caption indicating the count.. .🤔
4th Aug 2020, 2:53 AM
Sanjay Kamath
Sanjay Kamath - avatar