Skip to main content

LegendStyle Members

Stores legend appearance settings.

Constructors

Name Description
LegendStyle() Initializes a new instance of the LegendStyle class.

Fields

Name Description
BackgroundColorProperty static Identifies the BackgroundColor bindable property.
BindingContextProperty static Bindable property for BindingContext. Inherited from BindableObject.
BorderColorProperty static Identifies the BorderColor bindable property.
BorderThicknessProperty static Identifies the BorderThickness bindable property.
IndentFromDiagramProperty static Identifies the IndentFromDiagram bindable property.
ItemsHorizontalIndentProperty static Identifies the ItemsHorizontalIndent bindable property.
ItemsVerticalIndentProperty static Identifies the ItemsVerticalIndent bindable property.
MarkerSizeProperty static Identifies the MarkerSize bindable property.
PaddingProperty static Identifies the Padding bindable property.
TextIndentProperty static Identifies the TextIndent bindable property.
TextStyleProperty static Identifies the TextStyle bindable property. Inherited from TextElementStyleBase.

Properties

Name Description
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.
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.
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.
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.
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.

Methods

Name Description
ApplyBindings() protected Applies all the current bindings to BindingContext. Inherited from BindableObject.
ClearValue(BindableProperty) Clears any value that is previously set for a bindable property. Inherited from BindableObject.
ClearValue(BindablePropertyKey) Clears any value that is previously set for a bindable property, identified by its key. Inherited from BindableObject.
CoerceValue(BindableProperty)

Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property.

Inherited from BindableObject.
CoerceValue(BindablePropertyKey)

Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property.

Inherited from BindableObject.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
GetValue(BindableProperty) Returns the value that is contained in the given bindable property. Inherited from BindableObject.
IsSet(BindableProperty) Determines whether or not a bindable property exists and has a value set. Inherited from BindableObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
OnPropertyChanging(String) protected Raises the PropertyChanging event. Inherited from BindableObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RemoveBinding(BindableProperty) Removes a previously set binding from a bindable property. Inherited from BindableObject.
SetBinding(BindableProperty, BindingBase) Assigns a binding to a bindable property. Inherited from BindableObject.
SetInheritedBindingContext(BindableObject, Object) static Sets the inherited context to a nested element. Inherited from BindableObject.
SetValue(BindableProperty, Object) Sets the value of the specified bindable property. Inherited from BindableObject.
SetValue(BindablePropertyKey, Object) Sets the value of the specified bindable property. Inherited from BindableObject.
SetValueCore(BindableProperty, Object, SetValueFlags) For internal use by the Microsoft.Maui.Controls platform. Inherited from BindableObject.
ToString() Returns a string that represents the current object. Inherited from Object.
UnapplyBindings() protected Removes all current bindings from the current context. Inherited from BindableObject.

Events

Name Description
BindingContextChanged Occurs when the value of the BindingContext property changes. Inherited from BindableObject.
PropertyChanged Occurs when a property value changes. Inherited from BindableObject.
PropertyChanging Occurs when a property value is changing. Inherited from BindableObject.
See Also