PersonPicture
Description
PersonPicture is a WPF Control that represents a person or group with a photo, initials, or a glyph.
Example usage
- XAML
- C#
<fluence:PersonPicture DisplayName="Ana Bowman" />
var avatar = new Fluence.Wpf.Controls.PersonPicture { DisplayName = "Ana Bowman" };
Key properties
| Property | Default | Purpose |
|---|---|---|
DisplayName | Empty string | Name used to derive up to two initials. |
Initials | Empty string | Explicit initials override those derived from the name. |
ProfilePicture | null | Image source for the profile photo. |
IsGroup | false | Displays a group glyph. |
BadgeNumber | 0 | Number shown in the optional badge. |
BadgeGlyph | null | Glyph shown in the optional badge. |
State and behavior
ProfilePicture shows a photo. Without one, the control shows initials, derived from DisplayName unless Initials is set. IsGroup shows the group glyph in the icon font; initials continue to use the body font. BadgeNumber or BadgeGlyph adds a badge.