Class
RadLegendControl

Represents legend control that displays the series from ILegendInfoProvider instance.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadLegendControl : RadControl

Inheritance: objectRadControlRadLegendControl

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.OnCreateAutomationPeer()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnTemplateApplied()RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadLegendControl()

Initializes a new instance of the RadLegendControl class.

Declaration

cs-api-definition
public RadLegendControl()

Fields

ItemTemplateProperty

Identifies the ItemTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemTemplateProperty

Field Value

DependencyProperty

ItemsPanelProperty

Identifies the ItemsPanel property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsPanelProperty

Field Value

DependencyProperty

LegendProviderProperty

Identifies the LegendProvider property.

Declaration

cs-api-definition
public static readonly DependencyProperty LegendProviderProperty

Field Value

DependencyProperty

Properties

ItemTemplate

Gets or sets the DataTemplate used to display each legend item.

Declaration

cs-api-definition
public DataTemplate ItemTemplate { get; set; }

Property Value

DataTemplate

ItemsPanel

Gets or sets the items panel that will be used for the legend presenter to display data.

Declaration

cs-api-definition
public ItemsPanelTemplate ItemsPanel { get; set; }

Property Value

ItemsPanelTemplate

LegendItems

Gets a collection of the LegendItem items that will be displayed.

Declaration

cs-api-definition
public virtual LegendItemCollection LegendItems { get; }

Property Value

LegendItemCollection

LegendProvider

Gets or sets the provider that this RadLegendControl will use to display its items.

Declaration

cs-api-definition
public ILegendInfoProvider LegendProvider { get; set; }

Property Value

ILegendInfoProvider

Methods

ApplyTemplateCore()

Called when the Framework OnApplyTemplate is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()