Skip to main content
Version: 4.2

TimelineItem

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

A mutable activity entry with an optional hosted Wisej control.

public class TimelineItem : INotifyPropertyChanged

An item can belong to only one collection. Text is displayed literally, without HTML interpretation.

Example:

var timeline = new Timeline();
var item = new TimelineItem(DateTime.Now, "Backup completed")
{
Description = "2.3 GB copied.",
Tone = TimelineTone.Success,
Tag = "backup-42"
};
timeline.Items.Add(item);
item.Description = "Verification completed."; // Refreshes the displayed item.

Constructors​

Instance member TimelineItem()​

Initializes an empty activity with no timestamp and the primary tone.

Instance member TimelineItem(time, title)​

Initializes a timestamped activity.

NameTypeDescription
timeDateTimeTime in the application's chosen display time zone; no implicit conversion is performed.
titleStringPlain-text activity title.

Properties​

Instance member Content​

Control: Gets or sets an optional Wisej control displayed below the detail. (Default: null)

The timeline owns its parenting while attached. Removal detaches without disposing; disposing the timeline disposes attached content.

Example:

var details = new Button { Text = "Open details", Height = 32 };
details.Click += (sender, e) => MessageBox.Show("Details opened.");
item.Content = details;
timeline.Items.Add(item);
timeline.Items.Remove(item); // Detaches details without disposing it.
details.Dispose(); // Dispose it when the application no longer needs it.

Instance member Description​

String: Gets or sets the plain-text detail. The default is empty. (Default: "")

Instance member Icon​

String: Gets or sets an image source URL or Wisej theme image key, replacing the colored dot. (Default: "")

Instance member Tag​

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

Instance member Time​

Nullable<DateTime>: Gets or sets the timestamp, or null when unknown. No time-zone conversion is performed. (Default: null)

Instance member Title​

String: Gets or sets the plain-text title. The default is empty. (Default: "")

Instance member Tone​

TimelineTone: Gets or sets the marker's semantic theme color. The default is Primary. (Default: Primary)

Events​

Instance member PropertyChanged​

PropertyChangedEventHandler Occurs after a property changes.