Hello,
Is there any documentation for the same?
You can still use BindingContext
, before you use it, please set specific type of the child property to the Microsoft.Maui.Controls.View
, then you can use child.BindingContext
.
foreach (Microsoft.Maui.Controls.View child in _content.Children)
{
if (child.BindingContext is MyData data)
{
string name = data.Name;
int age = data.Age;
}
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.