Skip to main content

LegendItemClickedEventArgs Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts
public class LegendItemClickedEventArgs

Inheritance: EventArgs -> LegendItemClickedEventArgs

Constructors​

NameDescription
LegendItemClickedEventArgsInitializes a new instance of the Avalonia.Controls.Charts.LegendItemClickedEventArgs class.

LegendItemClickedEventArgs Constructor​

Initializes a new instance of the Avalonia.Controls.Charts.LegendItemClickedEventArgs class.

public LegendItemClickedEventArgs(Avalonia.Controls.Charts.ChartLegendItem item, bool isNowVisible)

Parameters​

item Avalonia.Controls.Charts.ChartLegendItem

isNowVisible bool

Properties​

NameDescription
IsNowVisibleGets whether the associated series or indicator is now visible after the toggle.
ItemGets the legend item that was clicked.

IsNowVisible Property​

Gets whether the associated series or indicator is now visible after the toggle.

public bool IsNowVisible { get; set; }

Item Property​

Gets the legend item that was clicked.

public Avalonia.Controls.Charts.ChartLegendItem Item { get; set; }