Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The AvatarView (profile view) control for WPF provides a graphical representation of users that can be customized by adding images, background colors, icons, text, and more.

WPF AvatarView overview


Initials

The WPF AvatarView control supports both single and double characters in initials. So, users can generate initials based on the text provided.

WPF AvatarView for initial type single character

Single character

Used to show one character (the first character) from the avatar name.

WPF AvatarView for initial type double character

Double character

Used to show two characters (first and last characters for a single word/first character for more than one word) from the avatar name as initials.


Custom image

Set any custom image as the avatar for the user in the WPF AvatarView control.

WPF AvatarView with custom image


Avatar character

The WPF AvatarView control has 25 pre-defined avatar character images to set the avatar for users.

WPF AvatarView with avatar character


Group view

A group view is one of the most common UIs in any chat application. Almost all chat applications support group chats that require a common group picture to represent the group. The WPF AvatarView control supports group avatar view.

WPF AvatarView with group view content


Visual style

The WPF AvatarView control comes with a predefined style as per design guidelines. Sizing specifications based on style factors such as extra-large, large, medium, small, and extra-small for squares and circles are available.

WPF AvatarView with square style

Square

WPF AvatarView supports predefined square-shaped styles.

WPF AvatarView with circle style

Circle

WPF AvatarView supports predefined circle-shaped styles.


Customization

The WPF AvatarView control has customization options such as border, background, gradient background, font, and more.

WPF AvatarView with border customization

Border customization

Users can easily customize the border color and thickness of the control.

WPF AvatarView with font customization

Font customization

Users can change the font size, font color, and font family of the initials.

WPF AvatarView  with background customization

Background

Users can customize the background of the control.

WPF AvatarView with gradient background customization

Gradient background

Users can customize the control background with a gradient color.


WPF AvatarView code example

Easily get started with the WPF AvatarView control using a few simple lines of XAML and CS code example, as demonstrated below.

  1. <Window x:Class="AvatarView.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:AvatarView"
  7. xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
  8. mc:Ignorable="d"
  9. Title="MainWindow" Height="450" Width="800">
  10. <Grid>
  11. <syncfusion:SfAvatarView ContentType="Initials" AvatarName="Anderson Perry"/>
  12. </Grid>
  13. </Window>
  1. public MainWindow()
  2. {
  3. InitializeComponent();
  4. Grid grid = new Grid();
  5. SfAvatarView avatarView = new SfAvatarView();
  6. avatarView.ContentType = AvatarContentType.Initials;
  7. avatarView.AvatarName = "Anderson Perry";
  8. grid.Children.Add(avatarView);
  9. this.Content = grid;
  10. }

95+ WPF CONTROLS

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion WPF AvatarView Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon
Chat with us