Class Legend
Represents a control that displays a list of items and has a title.
Inheritance
System.Object
Legend
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.DataVisualization
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(ContentPresenter))]
[StyleTypedProperty(Property = "TitleStyle", StyleTargetType = typeof(Title))]
public class Legend : HeaderedItemsControl, IControl, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceLegend()
Initializes a new instance of the Legend class.
Declaration
public Legend()
Fields
| Improve this Doc View SourceContentVisibilityProperty
Identifies the ContentVisibility dependency property.
Declaration
public static readonly DependencyProperty ContentVisibilityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TitleStyleProperty
Identifies the TitleStyle dependency property.
Declaration
public static readonly DependencyProperty TitleStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceContentVisibility
Gets the Visibility of the Legend's content (title and items).
Declaration
public Visibility ContentVisibility { get; protected set; }
Property Value
Type | Description |
---|---|
Visibility |
TitleStyle
Gets or sets the Style of the ISeriesHost's Title.
Declaration
public Style TitleStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
Methods
| Improve this Doc View SourceOnHeaderChanged(Object, Object)
Handles the OnHeaderChanged event for HeaderedItemsControl.
Declaration
protected override void OnHeaderChanged(object oldHeader, object newHeader)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldHeader | Old header. |
System.Object | newHeader | New header. |
Overrides
| Improve this Doc View SourceOnItemsChanged(NotifyCollectionChangedEventArgs)
Handles the CollectionChanged event for HeaderedItemsControl's ItemsSource.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Event arguments. |