Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/syncfusionexamples/how-to-load-online-image-in-.net-maui-avatarview
- Owner: SyncfusionExamples
- Created: 2024-08-12T13:06:52.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-13T08:36:34.000Z (5 months ago)
- Last Synced: 2024-12-04T14:24:22.964Z (about 1 month ago)
- Topics: avatar-view, customization, maui, maui--avatar-view, visual-customization
- Language: C#
- Homepage:
- Size: 213 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)