Class ChartLegendItem
This class represents a chart legend item.
Inheritance
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class ChartLegendItem : Control, IInteractiveElement
Constructors
ChartLegendItem()
Declaration
public ChartLegendItem()
Fields
ItemStyleProperty
Identifies the Item
Declaration
public static readonly DependencyProperty ItemStyleProperty
Field Value
System.
|
LabelProperty
Identifies the Label dependency property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
System.
|
MarkerFillProperty
Identifies the Marker
Declaration
public static readonly DependencyProperty MarkerFillProperty
Field Value
System.
|
MarkerShapeProperty
Identifies the Marker
Declaration
public static readonly DependencyProperty MarkerShapeProperty
Field Value
System.
|
MarkerStrokeProperty
Identifies the Marker
Declaration
public static readonly DependencyProperty MarkerStrokeProperty
Field Value
System.
|
MarkerStrokeThicknessProperty
Identifies the Marker
Declaration
public static readonly DependencyProperty MarkerStrokeThicknessProperty
Field Value
System.
|
MaskVisibilityProperty
Identifies the Mask
Declaration
public static readonly DependencyProperty MaskVisibilityProperty
Field Value
System.
|
Properties
IsSelected
Gets or sets a value indicating whether this instance is clicked.
Declaration
protected bool IsSelected { get; set; }
Property Value
System.
|
ItemStyle
Gets or sets the style applied to the legend item marker.
Declaration
public Style ItemStyle { get; set; }
Property Value
System.
|
Label
Gets or sets the text that appears in the legend item entry.
Declaration
public string Label { get; set; }
Property Value
System.
|
MarkerFill
Gets or sets the MarkerFill.
Declaration
public Brush MarkerFill { get; set; }
Property Value
System.
|
MarkerShape
Gets or sets the legend item marker shape.
Declaration
public MarkerShape MarkerShape { get; set; }
Property Value
MarkerStroke
Gets or sets the MarkerStroke.
Declaration
public Brush MarkerStroke { get; set; }
Property Value
System.
|
MarkerStrokeThickness
Gets or sets the stroke thickness of the legend item marker.
Declaration
public double MarkerStrokeThickness { get; set; }
Property Value
System.
|
MaskVisibility
Gets or sets a value indicating whether the built-in mask overlay should be visible or not.
Declaration
public Visibility MaskVisibility { get; set; }
Property Value
System. The default value is Visible. |
Remarks
This property is applicable only to a limited set of the supported themes (i.e. Office, Vista, Windows7). Also disabling the mask overlay will disable the item selection indicator as well.
Methods
ChartItemSelected(Boolean)
Called when the chart item is clicked.
Declaration
protected virtual void ChartItemSelected(bool value)
Parameters
System.
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
OnMouseEnter(MouseEventArgs)
Called before the System.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System. The data for the event. |
OnMouseLeave(MouseEventArgs)
Called before the System.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System. The data for the event. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called before the System.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System. The data for the event. |