Class
LabelToolbarItemView

Visual representation of a label in the RadToolbar control. The label can display a text and optionally an image next to it.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class LabelToolbarItemView : ToolbarItemView, IRadContentView, IContentView, IPadding, ICrossPlatformLayout, IVisualTreeElement, IView, IElement, ITransform

Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewToolbarContentViewToolbarItemViewLabelToolbarItemView

Derived Classes: ButtonToolbarItemView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIViewIVisualTreeElement

Inherited Members ToolbarItemView.OrientationPropertyToolbarItemView.PlacementLocationPropertyToolbarItemView.ToolbarPropertyToolbarItemView.OrientationToolbarItemView.PlacementLocationToolbarItemView.ToolbarRadBorderContentView.BackgroundColorPropertyRadBorderContentView.BackgroundPropertyRadBorderContentView.BorderColorPropertyRadBorderContentView.BorderBrushPropertyRadBorderContentView.BorderThicknessPropertyRadBorderContentView.CornerRadiusPropertyRadBorderContentView.ContentPaddingPropertyRadBorderContentView.BackgroundColorRadBorderContentView.BackgroundRadBorderContentView.BorderColorRadBorderContentView.BorderBrushRadBorderContentView.BorderThicknessRadBorderContentView.CornerRadiusRadBorderContentView.ContentPaddingRadCompositeContentView.StylePropertyRadCompositeContentView.ControlTemplatePropertyRadCompositeContentView.OnApplyTemplate()RadCompositeContentView.OnBindingContextChanged()RadCompositeContentView.OnPropertyChanged(string)RadCompositeContentView.StyleRadCompositeContentView.ControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnHandlerChanged()

Constructors

LabelToolbarItemView()

Declaration

cs-api-definition
public LabelToolbarItemView()

Fields

ActualImageSourceProperty

Identifies the ActualImageSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualImageSourceProperty

Field Value

BindableProperty

DisplayOptionsProperty

Identifies the DisplayOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty DisplayOptionsProperty

Field Value

BindableProperty

FontAttributesProperty

Identifies the FontAttributes property.

Declaration

cs-api-definition
public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontFamilyProperty

Identifies the FontFamily property.

Declaration

cs-api-definition
public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

Identifies the FontSize property.

Declaration

cs-api-definition
public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

HorizontalContentOptionsProperty

Identifies the HorizontalContentOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalContentOptionsProperty

Field Value

BindableProperty

HorizontalTextAlignmentProperty

Identifies the HorizontalTextAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalTextAlignmentProperty

Field Value

BindableProperty

ImageAspectProperty

Identifies the ImageAspect property.

Declaration

cs-api-definition
public static readonly BindableProperty ImageAspectProperty

Field Value

BindableProperty

ImageHeightProperty

Identifies the ImageHeight property.

Declaration

cs-api-definition
public static readonly BindableProperty ImageHeightProperty

Field Value

BindableProperty

ImagePositionProperty

Identifies the ImagePosition property.

Declaration

cs-api-definition
public static readonly BindableProperty ImagePositionProperty

Field Value

BindableProperty

ImageSourceProperty

Identifies the ImageSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ImageSourceProperty

Field Value

BindableProperty

ImageSpacingProperty

Identifies the ImageSpacing property.

Declaration

cs-api-definition
public static readonly BindableProperty ImageSpacingProperty

Field Value

BindableProperty

ImageWidthProperty

Identifies the ImageWidth property.

Declaration

cs-api-definition
public static readonly BindableProperty ImageWidthProperty

Field Value

BindableProperty

TextColorProperty

Identifies the TextColor property.

Declaration

cs-api-definition
public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

TextDecorationsProperty

Identifies the TextDecorations property.

Declaration

cs-api-definition
public static readonly BindableProperty TextDecorationsProperty

Field Value

BindableProperty

TextProperty

Identifies the Text property.

Declaration

cs-api-definition
public static readonly BindableProperty TextProperty

Field Value

BindableProperty

VerticalContentOptionsProperty

Identifies the VerticalContentOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalContentOptionsProperty

Field Value

BindableProperty

VerticalTextAlignmentProperty

Identifies the VerticalTextAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalTextAlignmentProperty

Field Value

BindableProperty

Properties

ActualImageSource

Gets the actual ImageSource used to display the image in the toolbar item. This property is intended to work in combination with the FontImageSource type. When a FontImageSource is specified and no color is explicitly assigned to it, this property contains the modified FontImageSource to match the value of the current TextColor of the toolbar item. When the TextColor changes, the color of the FontImageSource is updated automatically. This is useful for changing the color of the image during visual state transitions, without having to provide different images for each possible visual state.

Declaration

cs-api-definition
public ImageSource ActualImageSource { get; }

Property Value

ImageSource

DisplayOptions

Gets or sets the display options of the toolbar item. For more information see the ToolbarItemDisplayOptions type.

Declaration

cs-api-definition
public ToolbarItemDisplayOptions DisplayOptions { get; set; }

Property Value

ToolbarItemDisplayOptions

FontAttributes

Gets or sets the font attributes of the text to display in the toolbar item. For more information see the FontAttributes type.

Declaration

cs-api-definition
public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontFamily

Gets or sets the font family of the text to display in the toolbar item.

Declaration

cs-api-definition
public string FontFamily { get; set; }

Property Value

string

FontSize

Gets or sets the font size of the text to display in the toolbar item.

Declaration

cs-api-definition
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

double

HorizontalContentOptions

Gets or sets the horizontal alignment options of the content displayed in the toolbar item. For more information see the LayoutOptions type.

Declaration

cs-api-definition
public LayoutOptions HorizontalContentOptions { get; set; }

Property Value

LayoutOptions

HorizontalTextAlignment

Gets or sets the horizontal alignment of the text to display in the toolbar item. For more information see the TextAlignment type.

Declaration

cs-api-definition
public TextAlignment HorizontalTextAlignment { get; set; }

Property Value

TextAlignment

ImageAspect

Gets or sets the aspect ratio of the image to display in the toolbar item. For more information see the Aspect type.

Declaration

cs-api-definition
public Aspect ImageAspect { get; set; }

Property Value

Aspect

ImageHeight

Gets or sets the height in pixels of the image to display in the toolbar item.

Declaration

cs-api-definition
public double ImageHeight { get; set; }

Property Value

double

ImagePosition

Gets or sets the position of the image relative to the text in the toolbar item. For more information see the ToolbarItemImagePosition type.

Declaration

cs-api-definition
public ToolbarItemImagePosition ImagePosition { get; set; }

Property Value

ToolbarItemImagePosition

ImageSource

Gets or sets the source of the image to display in the toolbar item. For more information see the ImageSource type.

Declaration

cs-api-definition
public ImageSource ImageSource { get; set; }

Property Value

ImageSource

ImageSpacing

Gets or sets the spacing in pixels between the image and the text in the toolbar item.

Declaration

cs-api-definition
public double ImageSpacing { get; set; }

Property Value

double

ImageWidth

Gets or sets the width in pixels of the image to display in the toolbar item.

Declaration

cs-api-definition
public double ImageWidth { get; set; }

Property Value

double

Text

Gets or sets the text to display in the toolbar item.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

TextColor

Gets or sets the color of the text to display in the toolbar item.

Declaration

cs-api-definition
public Color TextColor { get; set; }

Property Value

Color

TextDecorations

Gets or sets the decorations of the text to display in the toolbar item. For more information see the TextDecorations type.

Declaration

cs-api-definition
public TextDecorations TextDecorations { get; set; }

Property Value

TextDecorations

VerticalContentOptions

Gets or sets the vertical alignment options of the content displayed in the toolbar item. For more information see the LayoutOptions type.

Declaration

cs-api-definition
public LayoutOptions VerticalContentOptions { get; set; }

Property Value

LayoutOptions

VerticalTextAlignment

Gets or sets the vertical alignment of the text to display in the toolbar item. For more information see the TextAlignment type.

Declaration

cs-api-definition
public TextAlignment VerticalTextAlignment { get; set; }

Property Value

TextAlignment