Issue
I'm looking for an code example how to get all children of parent control in Xamarin.Forms.
Solution
Yes, you can try to use the Children
property of your control.
For example,there is a grid, we can access its Children
like this:
var children = grid.Children;
foreach(View child in children){
if (child is Entry) {
string value = ((Entry)child).Text;
System.Diagnostics.Debug.WriteLine("one value is = " + value);
}
}
Answered By - Jessie Zhang -MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.