Create Group Chat Profile View in .NET MAUI App | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (181).NET Core  (28).NET MAUI  (227)Angular  (113)ASP.NET  (49)ASP.NET Core  (81)ASP.NET MVC  (87)Azure  (42)Black Friday Deal  (1)Blazor  (236)BoldSign  (14)DocIO  (24)Essential JS 2  (110)Essential Studio  (200)File Formats  (73)Flutter  (136)JavaScript  (226)Microsoft  (122)PDF  (83)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (964)TypeScript  (33)Uno Platform  (3)UWP  (3)Vue  (46)Webinar  (53)Windows Forms  (59)WinUI  (72)WPF  (163)Xamarin  (159)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (11)Business intelligence  (55)Button  (4)C#  (164)Chart  (147)Chart of the week  (58)Cloud  (15)Company  (440)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (73)Development  (681)Doc  (7)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (13)Excel  (43)Extensions  (23)File Manager  (7)Gantt  (21)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (522)Mobile MVC  (9)OLAP server  (2)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (45)Performance  (13)PHP  (2)PivotGrid  (5)Predictive Analytics  (6)Report Server  (3)Reporting  (8)Reporting / Back Office  (9)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (5)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (32)Solution Services  (4)Spreadsheet  (11)SQL  (15)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (406)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (628)What's new  (341)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Create Group Chat Profile View in .NET MAUI App

Create Group Chat Profile View in .NET MAUI App

One of the most typical user interfaces in chat applications is the group view. Almost all chat software allows for group chat, which calls for a standard group photo to serve as the group’s representation. A useful feature of the .NET MAUI Avatar View control is group view support. When you give the Avatar View a group source, it will transform it into a group view automatically. Let’s see how easy it is to achieve this in a .NET MAUI application.

.NET MAUI Avatar View

Almost all mobile apps have a user interface that shows the users’ initials or an avatar image (like in contact lists, images in tokens, and chat user displays). We at Syncfusion recognize the need for this straightforward but crucial control, and we are now offering the feature-rich .NET MAUI Avatar View control. The .NET MAUI Avatar View control gives users a graphic representation that can be customized by including images, background colors, icons, text, and more.

.NET MAUI avatar group chat profile view

The .NET MAUI Avatar View (SfAvatarView) control allows you to display the view in five different ways:

  • Default: Displays the default image when initializing without any other source such as image or group.
  • Initials: Displays initials in the view.
  • AvatarCharacter: Displays a default image in the view.
  • Custom: Displays a custom image in the view.
  • Group: Displays a maximum of three images or initials in a single view.

The group content type provides a group chat profile view in a .NET MAUI application.

Steps to integrate a group chat profile view

Step 1: Get the class that contains the collection of members of the chat view. I have prepared a simple class that contains a collection of users.

public GroupMemberViewModel()
    GroupMembers = new ObservableCollection();GroupMembers.Add(new Person() { Name = "Selva Ganapathy", Picture = "selvaganapathy.png" });
    GroupMembers.Add(new Person() { Name = "Clara", Picture = "clara.png" });
    GroupMembers.Add(new Person() { Name = "Alexandar", Picture = "alexandar.png" });
    GroupMembers.Add(new Person() { Name = "Gabriella", Picture = "gabriella.png" });
    GroupMembers.Add(new Person() { Name = "Lita", Picture = "lita.png" });
    GroupMembers.Add(new Person() { Name = "Nora", Picture = "nora.png" });
    GroupMembers.Add(new Person() { Name = "Sebastian", Picture = "sebastian.png" });
    GroupMembers.Add(new Person() { Name = "Tye", Picture = "tye.png" });
    GroupMembers.Add(new Person() { Name = "Jennifer", Picture = "jennifer.png" });
    GroupMembers.Add(new Person() { Name = "Jackson", Picture = "jackson.png" });
public class Person
    public String Name { get; set; }
    public String Picture { get; set; }

Step 2: Create an object for the previous class and set it as binding content to the page where you need to display the group chat profile view.

public partial class MainPage : ContentPage
    public MainPage()
        this.BindingContext = new GroupMemberViewModel();

Step 3: Include the .NET MAUI Avatar View reference. The NuGet packages for Syncfusion .NET MAUI controls are available on To add the .NET MAUI Avatar View to your project, open the NuGet package manager in Visual Studio, search for Syncfusion.Maui.Core, and then install it.

Step 4: Then, in the MauiProgram.cs file, register the handler for Syncfusion core.

public static class MauiProgram
    public static MauiApp CreateMauiApp()
        var builder = MauiApp.CreateBuilder();
        .ConfigureFonts(fonts =>
            fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
            fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
        );builder.ConfigureSyncfusionCore();return builder.Build();

Step 5: Add the following XML namespace and include .NET MAUI Avatar View.

<ContentPage xmlns=""
        <Syncfusion:SfAvatarView />

Step 6: Set the ContentTypeProperty as Group, bind the GroupSource property to GroupMembers, and set the ImageSoureMemberPath property to Picture.

.NET MAUI Group Chat Profile View
.NET MAUI Group Chat Profile View


In the previous group chat profile view, you can customize the following properties.

Corner radius

You can set the corner radius to be circular. Refer to the following code.

<Syncfusion:SfAvatarView WidthRequest="250"
                         GroupSource="{Binding GroupMembers}"
.NET MAUI Group Chat Profile View⁠—Circular Image
.NET MAUI Group Chat Profile View⁠—Circular Image

 Initials view

To show only the initials, set the InitialsMemberPath property to Name. To set different background colors to the initials, store the colors in a collection and assign it to the BackgroundColorMemberPath property. Refer to the following code.

    GroupSource="{Binding GroupMembers}"
.NET MAUI Group Chat Profile View⁠—Initials View
.NET MAUI Group Chat Profile View⁠—Initials View

Note: If we assign values to both ImageSourceMemberPath and InitialsMemberPath, ImageSourceMemberPath will be given the first preference.

Displaying both image and initial view

If the items in the collection do not have the image source set, then the initials will display.

GroupMembers.Add(new Person() { Name = "Selva Ganapathy", Picture = "selvaganapathy.png", Color = Colors.LightBlue });
GroupMembers.Add(new Person() { Name = "Clara", Picture = "clara.png", Color = Colors.LightPink });
GroupMembers.Add(new Person() { Name = "Alexandar", Color = Colors.LightGreen });

For example, in the previous code, the third item is not assigned an image, so the result will be similar to the following screenshot.

.NET MAUI Group Chat Profile View⁠—Image and Initials View
.NET MAUI Group Chat Profile View⁠—Image and Initials View

Group chat profile view⁠—cascading view

You can simply bind the Avatar View to a HorizonalStackLayout to present it as a cascading view for the group profile view. Refer to the following code example.

<HorizontalStackLayout BindableLayout.ItemsSource="{Binding GroupMembers}" >
            <Syncfusion:SfAvatarView Margin="-45,0,0,0"
                                     ImageSource="{Binding Picture}"/>
.NET MAUI Group Chat Profile View⁠—Cascading View
.NET MAUI Group Chat Profile View⁠—Cascading View


Thanks for reading! In this blog post, we have gone through the group chat profile view feature of the .NET MAUI Avatar View control. You can download Essential Studio for .NET MAUI to evaluate this control.

Please let us know in the comments below if you have any questions or require clarification about this control. You can also contact us through our support forumsupport portal, or feedback portal. We are happy to assist you!

Test Flight
App Center Badge
Google Play Store Badge
Microsoft Badge
Github Store Badge

Related blogs


Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed