Hello,
After investigation, the problem is not caused by MVVM data binding and JSON deserialization. The reason why the Image and Label are not displayed is that a non-existent Style is used in the XAML page.
<Frame HeightRequest="125" Style="{StaticResource CardView}">
Since CardView is not defined, the outermost Frame is a wrapper layer with a width and height of 0, which causes the data to not be displayed as expected.
Workaround: Remove this Style.
<Frame HeightRequest="125">
Update:
This is a problem caused by static resource references. The LargeLabel
in <Label Style="{StaticResource LargeLabel}" Text="{Binding Name}" />
is not defined and therefore cannot be rendered.
For resource references in the Maui project please refer to this document.
Best Regards,
Alec Liu.
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.