How to load the online images in .NET MAUI AvatarView?
This article explains how to load online images in the .NET MAUI AvatarView. To display an online image in the AvatarView, it is recommended to utilize the UriImageSource
from the ImageSource and set the ContentType property to Custom. This allows for the use of custom images, including those sourced from the web.
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<core:SfAvatarView AvatarSize="ExtraLarge"
HeightRequest="200"
AvatarShape="Square"
ContentType="Custom"
Aspect="AspectFill">
<core:SfAvatarView.ImageSource>
<UriImageSource Uri="https://cdn.syncfusion.com/content/images/Images/Camtasia_Succinctly.png?v=22022017060923"/>
</core:SfAvatarView.ImageSource>
</core:SfAvatarView>
</VerticalStackLayout>
By following this approach, you can easily load and display online images in your .NET MAUI applications.
Output
Download the complete sample from GitHub
Conclusion
Hope you enjoyed learning how to load the online images in .NET MAUI AvatarView.
Refer to our .NET MAUI Avatar View’s feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Avatar View documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion, try our 30-day free trial to check out our .NET MAUI Avatar View and other .NET MAUI components.
Please let us know in the following comments section if you have any queries or require clarifications. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!