AvatarItem
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes one portrait and its optional inline labels.
- C#
- VB.NET
public class AvatarItem : INotifyPropertyChanged
Public Class AvatarItem
Inherits 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
AvatarItem()
Initializes a new instance of AvatarItem.
Properties
AutoColor
Boolean: Gets or sets whether a deterministic color is chosen from Text. (Default: True)
Image
Image: Gets or sets the image displayed in preference to ImageSource. The caller retains ownership. (Default: null)
ImageSource
String: Gets or sets a Wisej image source, URL, or theme image name. (Default: "")
Label
String: Gets or sets the primary label displayed beside the portrait. (Default: "")
Presence
AvatarPresence: Gets or sets the presence indicator. (Default: None)
Shape
AvatarShape: Gets or sets the outline shape. (Default: Circle)
SubLabel
String: Gets or sets the secondary label displayed beside the portrait. (Default: "")
Tag
Object: Gets or sets application data retained only on the server. (Default: null)
Text
String: Gets or sets the name used to derive up to two initials. (Default: "")
Events
PropertyChanged
PropertyChangedEventHandler Occurs when a portrait property changes.