Skip to main content

LegendStyle Properties

Stores legend appearance settings.
Name Description
AutomationId Gets or sets a value that allows the automation framework to find and interact with this element. Inherited from Element.
BackgroundColor Gets or sets the legend background color. This is a bindable property.
BindingContext

Gets or sets an object that contains the properties that will be targeted by the bound properties that belong to this BindableObject. This is a bindable property.

Inherited from BindableObject.
BorderColor Gets or sets the legend border color. This is a bindable property.
BorderThickness Gets or sets the legend border thickness. This is a bindable property.
ClassId Gets or sets a value used to identify a collection of semantically similar elements. Inherited from Element.
Dispatcher

Gets the dispatcher that was available when this bindable object was created, otherwise tries to find the nearest available dispatcher (probably the window’s/app’s).

Inherited from BindableObject.
EffectControlProvider For internal use by .NET MAUI. Inherited from Element.
Effects Gets or sets the styles and properties that will be applied to the element during runtime. Inherited from Element.
Id Gets a value that can be used to uniquely identify an element throughout the run of your application. Inherited from Element.
IndentFromDiagram
ItemsHorizontalIndent Gets or sets the indent between legend items when they are arranged in a row. This is a bindable property.
ItemsVerticalIndent Gets or sets the indent between legend items when they are arranged in a column. This is a bindable property.
LogicalChildren For internal use by the Microsoft.Maui.Controls platform. Inherited from Element.
MarkerSize Gets or sets the size of legend markers. This is a bindable property.
Padding Gets or sets the spacing between the legend’s content and its edges, in scale-independent units. This is a bindable property.
Parent Gets or sets the parent Element of this element. Inherited from Element.
RealParent For internal use by .NET MAUI. Inherited from Element.
StyleId Gets or sets a user defined value to uniquely identify the element. Inherited from Element.
TextIndent Gets or sets the indent between legend markers and text. This is a bindable property.
TextStyle Gets or sets the text style of the chart’s element. This is a bindable property. Inherited from TextElementStyleBase.
See Also