skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ChartLegendItem

This class represents a chart legend item.

Inheritance
System.Object
ChartLegendItem
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 ItemStyle dependency property.

Declaration
public static readonly DependencyProperty ItemStyleProperty
Field Value
System.Windows.DependencyProperty

LabelProperty

Identifies the Label dependency property.

Declaration
public static readonly DependencyProperty LabelProperty
Field Value
System.Windows.DependencyProperty

MarkerFillProperty

Identifies the MarkerFill dependency property.

Declaration
public static readonly DependencyProperty MarkerFillProperty
Field Value
System.Windows.DependencyProperty

MarkerShapeProperty

Identifies the MarkerShape dependency property.

Declaration
public static readonly DependencyProperty MarkerShapeProperty
Field Value
System.Windows.DependencyProperty

MarkerStrokeProperty

Identifies the MarkerStroke dependency property.

Declaration
public static readonly DependencyProperty MarkerStrokeProperty
Field Value
System.Windows.DependencyProperty

MarkerStrokeThicknessProperty

Identifies the MarkerStrokeThickness dependency property.

Declaration
public static readonly DependencyProperty MarkerStrokeThicknessProperty
Field Value
System.Windows.DependencyProperty

MaskVisibilityProperty

Identifies the MaskVisibility dependency property.

Declaration
public static readonly DependencyProperty MaskVisibilityProperty
Field Value
System.Windows.DependencyProperty

Properties

IsSelected

Gets or sets a value indicating whether this instance is clicked.

Declaration
protected bool IsSelected { get; set; }
Property Value
System.Boolean

True if this instance is clicked; otherwise, false.

ItemStyle

Gets or sets the style applied to the legend item marker.

Declaration
public Style ItemStyle { get; set; }
Property Value
System.Windows.Style

Label

Gets or sets the text that appears in the legend item entry.

Declaration
public string Label { get; set; }
Property Value
System.String

MarkerFill

Gets or sets the MarkerFill.

Declaration
public Brush MarkerFill { get; set; }
Property Value
System.Windows.Media.Brush

MarkerShape

Gets or sets the legend item marker shape.

Declaration
public MarkerShape MarkerShape { get; set; }
Property Value
MarkerShape

MarkerStroke

Gets or sets the MarkerStroke.

Declaration
public Brush MarkerStroke { get; set; }
Property Value
System.Windows.Media.Brush

MarkerStrokeThickness

Gets or sets the stroke thickness of the legend item marker.

Declaration
public double MarkerStrokeThickness { get; set; }
Property Value
System.Double

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.Windows.Visibility

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.Boolean value

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

Declaration
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

OnMouseEnter(MouseEventArgs)

Called before the System.Windows.UIElement.MouseEnter event occurs.

Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The data for the event.

OnMouseLeave(MouseEventArgs)

Called before the System.Windows.UIElement.MouseLeave event occurs.

Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The data for the event.

OnMouseLeftButtonDown(MouseButtonEventArgs)

Called before the System.Windows.UIElement.MouseLeftButtonDown event occurs.

Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

The data for the event.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.