Class Legend
Represents a control that displays a list of items and has a title.
Inheritance
System.Object
Legend
Inherited Members
System.Windows.FrameworkElement.RegisterName(System.String, System.Object)
System.Windows.FrameworkElement.UnregisterName(System.String)
Namespace: System.Windows.Controls.DataVisualization
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public class Legend : HeaderedItemsControl
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. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Handles the CollectionChanged event for HeaderedItemsControl's ItemsSource.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
NotifyCollectionChangedEventArgs | e | Event arguments. |