Skip to main content

PersonPicture

C# API / Fluence.Wpf.Controls

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf.Controls
public class PersonPicture : Control

A Fluent Design circular avatar control that displays a profile photo, initials, or a placeholder glyph, with an optional badge. Authority: WinUI 3 PersonPicture.xaml + PersonPicture_themeresources.xaml. Visual states: Photo, Initials, NoPhotoOrInitials, Group (CommonStates); NoBadge, BadgeWithoutImageSource (BadgeStates).

Base type: Control (including inherited WPF and .NET members)

C# source

Constructors​

PersonPicture​

public PersonPicture()

Creates a new PersonPicture instance.

Properties​

BadgeGlyph​

public string BadgeGlyph { get; set; }

Gets or sets a Segoe Fluent Icons glyph shown in the badge. Takes precedence over BadgeNumber when both are set. Set to null (default) to show no glyph badge.

BadgeNumber​

public int BadgeNumber { get; set; }

Gets or sets a numeric badge displayed in the bottom-right corner. Set to 0 (default) to hide the badge.

DisplayName​

public string DisplayName { get; set; }

Gets or sets the person's display name. Up to two initials are derived automatically unless Initials is set explicitly.

Initials​

public string Initials { get; set; }

Gets or sets explicit initials to display. When set, overrides the initials derived from DisplayName.

IsGroup​

public bool IsGroup { get; set; }

Gets or sets whether the avatar represents a group rather than an individual. When true, the Group (people) glyph is displayed.

ProfilePicture​

public ImageSource ProfilePicture { get; set; }

Gets or sets the profile photo image source.

Methods​

OnApplyTemplate​

public override void OnApplyTemplate()

Documentation inherited from the Control API.

OnCreateAutomationPeer​

protected override AutomationPeer OnCreateAutomationPeer()

Documentation inherited from the Control API.

Dependency property identifiers​

Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.

BadgeGlyphProperty​

public static readonly DependencyProperty BadgeGlyphProperty

Identifies the BadgeGlyph dependency property.

BadgeNumberProperty​

public static readonly DependencyProperty BadgeNumberProperty

Identifies the BadgeNumber dependency property.

DisplayNameProperty​

public static readonly DependencyProperty DisplayNameProperty

Identifies the DisplayName dependency property.

InitialsProperty​

public static readonly DependencyProperty InitialsProperty

Identifies the Initials dependency property.

IsGroupProperty​

public static readonly DependencyProperty IsGroupProperty

Identifies the IsGroup dependency property.

ProfilePictureProperty​

public static readonly DependencyProperty ProfilePictureProperty

Identifies the ProfilePicture dependency property.