Skip to content

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

Notifications You must be signed in to change notification settings

SyncfusionExamples/How-to-load-online-image-in-.NET-MAUI-AvatarView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

AvatarView.png

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages