/syncfusion-winui:syncfusion-winui-avatar-viewfrom Syncfusion WinUI Controls
Guide for implementing the Syncfusion WinUI AvatarView control to display user avatars and profile pictures. Use this when implementing user profiles, contact lists, or chat interfaces requiring visual user representation in WinUI applications. This skill covers initials display, image avatars, group avatars, and pre-defined avatar characters.
Ships in Syncfusion WinUI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when the user needs to:
Always apply this skill when the user mentions: avatar, profile picture, user image, initials, contact image, user icon, profile badge, or group avatars in WinUI applications.
SfAvatarView is a Syncfusion WinUI control that provides a graphical representation of user images with support for custom images, user initials, pre-defined avatar characters, and group views. It offers flexible shapes, sizes, and extensive customization.
Namespace: Syncfusion.UI.Xaml.Core
NuGet Package: Syncfusion.Core.WinUI
Platform: WinUI 3 Desktop (.NET 5+, Windows App SDK 1.0+)
Key Advantage: Provides a complete avatar solution with built-in support for initials generation, 25 pre-defined avatar characters, and group views without needing custom implementations.
📄 Read: references/getting-started.md
📄 Read: references/content-types.md
📄 Read: references/visual-styles.md
📄 Read: references/customization.md
<Page
xmlns:syncfusion="using:Syncfusion.UI.Xaml.Core">
<Grid>
<!-- Initials avatar -->
<syncfusion:SfAvatarView
x:Name="userAvatar"
ContentType="Initials"
AvatarName="John Doe"
InitialsType="DoubleCharacter"
AvatarSize="Large"
Background="CornflowerBlue"
Foreground="White"
AvatarShape="Circle"/>
</Grid>
</Page>
using Syncfusion.UI.Xaml.Core;
using Microsoft.UI;
// Create avatar with initials
SfAvatarView avatarView = new SfAvatarView
{
ContentType = AvatarContentType.Initials,
AvatarName = "John Doe",
InitialsType = AvatarInitialsType.DoubleCharacter,
AvatarSize = AvatarSize.Large,
Background = new SolidColorBrush(Colors.CornflowerBlue),
Foreground = new SolidColorBrush(Colors.White),
AvatarShape = AvatarShape.Circle
};
// Add to UI
this.Content = avatarView;
<syncfusion:SfAvatarView
ContentType="Initials"
AvatarName="Sarah Johnson"
InitialsType="DoubleCharacter"
AvatarSize="ExtraLarge"
AvatarShape="Circle"
Background="#FF6A5ACD"
Foreground="White"/>
When to use: User profiles, account pages, settings screens.
<ListView ItemsSource="{x:Bind Contacts}">
<ListView.ItemTemplate>
<DataTemplate x:DataType="local:Contact">
<StackPanel Orientation="Horizontal" Spacing="10">
<syncfusion:SfAvatarView
ContentType="CustomImage"
ImageSource="{x:Bind ProfileImagePath}"
AvatarSize="Medium"
AvatarShape="Circle"/>
<TextBlock Text="{x:Bind Name}" VerticalAlignment="Center"/>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
When to use: Contact lists, chat contacts, team directories.
<StackPanel Orientation="Horizontal" Spacing="10">
<syncfusion:SfAvatarView
ContentType="AvatarCharacter"
AvatarCharacter="Avatar15"
AvatarSize="Small"
AvatarShape="Circle"/>
<Border Background="LightGray"
CornerRadius="8"
Padding="10">
<TextBlock Text="Hello! How are you?"/>
</Border>
</StackPanel>
When to use: Chat interfaces, comment sections, messaging apps.
<syncfusion:SfAvatarView
ContentType="Group"
GroupSource="{x:Bind TeamMembers}"
ImageSourceMemberPath="ProfileImage"
InitialsMemberPath="Name"
BackgroundColorMemberPath="BackgroundColor"
InitialsColorMemberPath="InitialsColor"
AvatarSize="Large"/>
public class TeamMember
{
public string Name { get; set; }
public string ProfileImage { get; set; }
public Color BackgroundColor { get; set; }
public Color InitialsColor { get; set; }
}
public ObservableCollection<TeamMember> TeamMembers { get; set; } = new()
{
new TeamMember { ProfileImage = "user1.png" },
new TeamMember { Name = "Alex", BackgroundColor = Colors.LightBlue, InitialsColor = Colors.Navy },
new TeamMember { ProfileImage = "user3.png" }
};
When to use: Team displays, group chats, collaborative features showing multiple participants.
private void ConfigureAvatar(User user)
{
if (!string.IsNullOrEmpty(user.ProfileImageUrl))
{
// Use custom image if available
avatarView.ContentType = AvatarContentType.CustomImage;
avatarView.ImageSource = new BitmapImage(new Uri(user.ProfileImageUrl));
}
else if (!string.IsNullOrEmpty(user.FullName))
{
// Use initials if no image
avatarView.ContentType = AvatarContentType.Initials;
avatarView.AvatarName = user.FullName;
avatarView.InitialsType = AvatarInitialsType.DoubleCharacter;
avatarView.Background = GetColorFromName(user.FullName);
}
else
{
// Use default avatar character
avatarView.ContentType = AvatarContentType.AvatarCharacter;
avatarView.AvatarCharacter = AvatarCharacter.Avatar1;
}
}
When to use: Fallback strategy when user data varies in completeness.
<syncfusion:SfAvatarView
ContentType="CustomImage"
ImageSource="AppIcon.png"
AvatarShape="Square"
AvatarSize="Large"
BorderBrush="Gray"
BorderThickness="1"
CornerRadius="8"/>
When to use: App icons, service logos, organization badges, square profile images.
<syncfusion:SfAvatarView
ContentType="Initials"
AvatarName="Emma Wilson"
InitialsType="DoubleCharacter"
AvatarSize="Large"
Foreground="White">
<syncfusion:SfAvatarView.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#FF6B5ACD" Offset="0"/>
<GradientStop Color="#FF4169E1" Offset="1"/>
</LinearGradientBrush>
</syncfusion:SfAvatarView.Background>
</syncfusion:SfAvatarView>
When to use: Modern, visually appealing avatars with branded gradients.
| Property | Type | Default | Description |
|---|---|---|---|
ContentType | AvatarContentType | Default | Type of content to display. Options: Default, Initials, CustomImage, AvatarCharacter, Group. |
ImageSource | ImageSource | null | Custom image for CustomImage content type. Path to user's profile picture. |
AvatarName | string | null | Name to generate initials from. Used with Initials content type. |
AvatarCharacter | AvatarCharacter | Avatar1 | Pre-defined avatar character (Avatar1-Avatar25). Used with AvatarCharacter content type. |
InitialsType | AvatarInitialsType | SingleCharacter | How initials are formatted. Options: SingleCharacter (first letter), DoubleCharacter (two letters). |
AvatarShape | AvatarShape | Circle | Visual shape. Options: Circle, Square, Custom. |
AvatarSize | AvatarSize | Small | Pre-defined size. Options: ExtraSmall, Small, Medium, Large, ExtraLarge. |
GroupSource | IEnumerable | null | Collection for Group content type. Supports up to 3 items. |
InitialsMemberPath | string | null | Property path for initials in GroupSource items. |
ImageSourceMemberPath | string | null | Property path for image in GroupSource items. |
BackgroundColorMemberPath | string | null | Property path for background color in GroupSource items. |
InitialsColorMemberPath | string | null | Property path for initials color in GroupSource items. |
Background | Brush | Gray | Background color or gradient for the avatar. |
Foreground | Brush | Black | Text color for initials. |
BorderBrush | Brush | null | Border color around the avatar. |
BorderThickness | Thickness | 0 | Border thickness around the avatar. |
CornerRadius | CornerRadius | Auto | Corner radius for Custom shape. |
FontFamily | FontFamily | Segoe UI | Font for initials text. |
FontSize | double | Auto | Font size for initials (auto-calculated based on AvatarSize). |
Best Approach: Use CustomImage if available, fallback to Initials with user's name.
Best Approach: Circle shape, Medium or Small size, CustomImage or Initials.
Best Approach: Small or Medium size, Circle shape, quick loading with Initials or AvatarCharacter.
Best Approach: Use Group content type to show up to 3 participants.
Best Approach: Small or ExtraSmall size, Circle shape, initials for quick display.
Initials Generation:
Avatar Character Selection: 25 pre-defined avatars (Avatar1-Avatar25) provide diverse representation without custom images.
Group View Limitations: Supports up to 3 items. If more items in GroupSource, only first 3 are displayed.
Image Loading: Use BitmapImage with ms-appx:/// or https:// URIs. Handle loading errors gracefully.
Background Colors: Generate consistent colors from user names using hash functions for visual consistency.
Size Guidelines:
Performance: Initials render faster than images. Use initials for long lists, custom images for detail views.
Accessibility: Avatar images should have AutomationProperties.Name set to user's name for screen readers.
Theme Integration: Use ThemeResource for Background to auto-adapt to light/dark themes:
Background="{ThemeResource SystemAccentColor}"
Caching: Cache avatar images to avoid repeated downloads. Use local storage for frequently accessed avatars.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winuiOther plugins' skills for the same job
39 skills in this plugin
/syncfusion-winui-ai-assistviewGuide for implementing the Syncfusion WinUI AI AssistView control for creating AI chat interfaces and conversational UI. Use this skill when implementing AI chat interfaces, AI assistants, conversational UI, or chatbots in WinUI applications. Essential for creating AI-powered chat experiences, integrating AI services, displaying AI responses, showing typing indicators, providing AI suggestions, managing conversation history with a navigation view, customizing empty states with EmptyView/EmptyViewTemplate, or setting input placeholder text in conversational interfaces with AI services in WinUI./syncfusion-winui-autocompleteGuide implementation of the Syncfusion WinUI AutoComplete control (SfAutoComplete) for creating searchable dropdowns with single or multiple selection, filtering suggestions, and customizable token display. Use this skill when implementing search-as-you-type functionality, autocomplete dropdowns with multi-select, tagging systems with token/chip display, or filtered suggestion boxes in WinUI applications./syncfusion-winui-badgeGuide implementation of the Syncfusion WinUI Badge control (SfBadge) for displaying notification badges and status indicators. Use this skill when working with badge notifications, unread count badges, BadgeContainer, or notification overlays in WinUI applications. Covers shapes, colors, positioning, alignment, animations, and customization patterns.