TimelineItem
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
A mutable activity entry with an optional hosted Wisej control.
- C#
- VB.NET
public class TimelineItem : INotifyPropertyChanged
Public Class TimelineItem
Inherits 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
TimelineItem()
Initializes an empty activity with no timestamp and the primary tone.
TimelineItem(time, title)
Initializes a timestamped activity.
| Name | Type | Description |
|---|---|---|
| time | DateTime | Time in the application's chosen display time zone; no implicit conversion is performed. |
| title | String | Plain-text activity title. |
Properties
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.
Description
String: Gets or sets the plain-text detail. The default is empty. (Default: "")
Icon
String: Gets or sets an image source URL or Wisej theme image key, replacing the colored dot. (Default: "")
Tag
Object: Gets or sets application data retained only on the server. The default is null. (Default: null)
Time
Nullable<DateTime>: Gets or sets the timestamp, or null when unknown. No time-zone conversion is performed. (Default: null)
Title
String: Gets or sets the plain-text title. The default is empty. (Default: "")
Tone
TimelineTone: Gets or sets the marker's semantic theme color. The default is Primary. (Default: Primary)
Events
PropertyChanged
PropertyChangedEventHandler Occurs after a property changes.