Skip to main content
Version: 4.2

AvatarItem

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes one portrait and its optional inline labels.

public class AvatarItem : INotifyPropertyChanged

Images are borrowed, never disposed. Image takes precedence over ImageSource; clearing Image reveals ImageSource. An item can belong to one AvatarItemCollection at a time. Property changes update its owner automatically.

Example:

group.Items.Add(new AvatarItem { Text = "Saoirse Kovač", Presence = AvatarPresence.Online });

Constructors​

Instance member AvatarItem()​

Initializes a new instance of AvatarItem.

Properties​

Instance member AutoColor​

Boolean: Gets or sets whether a deterministic color is chosen from Text. (Default: True)

Instance member Image​

Image: Gets or sets the image displayed in preference to ImageSource. The caller retains ownership. (Default: null)

Instance member ImageSource​

String: Gets or sets a Wisej image source, URL, or theme image name. (Default: "")

Instance member Label​

String: Gets or sets the primary label displayed beside the portrait. (Default: "")

Instance member Presence​

AvatarPresence: Gets or sets the presence indicator. (Default: None)

Instance member Shape​

AvatarShape: Gets or sets the outline shape. (Default: Circle)

Instance member SubLabel​

String: Gets or sets the secondary label displayed beside the portrait. (Default: "")

Instance member Tag​

Object: Gets or sets application data retained only on the server. (Default: null)

Instance member Text​

String: Gets or sets the name used to derive up to two initials. (Default: "")

Events​

Instance member PropertyChanged​

PropertyChangedEventHandler Occurs when a portrait property changes.