Nested Class Binding in Collectionview #17745
Unanswered
CodeExplorer321
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a class with nested classes:
public class MyTasks
{
public TaskDetails TaskDetails { get; set; }
}
public partial class TaskDetails
{
public TaskIndividual TaskIndividual { get; set; }
public Categories Categories { get; set; }
}
public partial class TaskIndividual {
public string TaskName { get; set; }
public string CreatedOn { get; set; }
}`
public partial class Categories
{
public Category[] Category { get; set; }
}
public partial class Category
{
public string CategType { get; set; }
}
I am binding it in MAUI in CollectionView as:
It is throwing unhandled error, not even entering the try catch block. I don't have option to modify the class structure because of the test data I am receiving in this format.
Any guidance on how to bind to Collection view will shall be highly appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions