In Xamarin.Forms we want to add a new button using
f001content = new Xamarin.Forms.AbsoluteLayout;
f001content.Children.Add(new Button
{
Text = "Button",
AutomationId = "MyButton",
}, new Rectangle(0,0,100,40));
How can we find the reference to the button just added so that we can modify it in the future?
If you're doing in the code behind, you need to create a variable to hold it.
Now when you need to reference it, you can. Note that you'll most likely want coolButton to be class wide or something. If you declare it in a method, you'll lose the reference when you exit the method.