Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/syncfusionexamples/how-to-load-online-image-in-.net-maui-avatarview

This repository contains a sample explaining how to load online image in .NET MAUI AvatarView.
https://github.com/syncfusionexamples/how-to-load-online-image-in-.net-maui-avatarview

avatar-view customization maui maui--avatar-view visual-customization

Last synced: 25 days ago
JSON representation

This repository contains a sample explaining how to load online image in .NET MAUI AvatarView.

Awesome Lists containing this project

README

        

This article explains how to load online images in the [.NET MAUI AvatarView](https://www.syncfusion.com/maui-controls/maui-avatarview). To display an online image in the AvatarView, it is recommended to utilize the `UriImageSource` from the [ImageSource](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfAvatarView.html#Syncfusion_Maui_Core_SfAvatarView_ImageSource) and set the [ContentType](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfAvatarView.html?tabs=tabid-1#Syncfusion_Maui_Core_SfAvatarView_ContentType) property to [Custom](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.ContentType.html#Syncfusion_Maui_Core_ContentType_Custom). This allows for the use of custom images, including those sourced from the web.

```xml





```

By following this approach, you can easily load and display online images in your .NET MAUI applications.

**Output**

![AvatarView.png](https://support.syncfusion.com/kb/agent/attachment/article/17110/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI4MTc2Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.enFMRhQ00OpCzZKqhwISFd5Q_D8bweCtCL435dUyNsI)