TimelineItemEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Provides the server-side item and source record for a timeline click.
- C#
- VB.NET
public sealed class TimelineItemEventArgs : EventArgs
Public NotInheritable Class TimelineItemEventArgs
Inherits EventArgs
Derives from or implements EventArgs.
Use Item, Index, DataItem to access the event data.
Example:
var timeline = new Timeline();
timeline.Items.Add(new TimelineItem(DateTime.Now, "Job finished") { Tag = "job-42" });
timeline.ItemClick += (sender, e) =>
MessageBox.Show($"Item {e.Index}: {e.Item.Title}; tag: {e.Item.Tag}");
Constructors
TimelineItemEventArgs(item, index, dataItem)
Initializes item event data.
| Name | Type | Description |
|---|---|---|
| item | TimelineItem | The clicked timeline item. |
| index | Int32 | Its zero-based index in Items at the time of the event. |
| dataItem | Object | The original bound source record, or null for an unbound item. |
Properties
DataItem
Object: Gets the original bound record, or null for unbound items.
Index
Int32: Gets the item's zero-based index in the current collection.
Item
TimelineItem: Gets the clicked item; its Tag remains on the server.