New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
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

C#
public LabelToolbarItemView()

Fields

Identifies the ActualImageSource property.

C#
public static readonly BindableProperty ActualImageSourceProperty

DisplayOptionsProperty

BindableProperty

Identifies the DisplayOptions property.

C#
public static readonly BindableProperty DisplayOptionsProperty

FontAttributesProperty

BindableProperty

Identifies the FontAttributes property.

C#
public static readonly BindableProperty FontAttributesProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize property.

C#
public static readonly BindableProperty FontSizeProperty

Identifies the HorizontalContentOptions property.

C#
public static readonly BindableProperty HorizontalContentOptionsProperty

Identifies the HorizontalTextAlignment property.

C#
public static readonly BindableProperty HorizontalTextAlignmentProperty

ImageAspectProperty

BindableProperty

Identifies the ImageAspect property.

C#
public static readonly BindableProperty ImageAspectProperty

ImageHeightProperty

BindableProperty

Identifies the ImageHeight property.

C#
public static readonly BindableProperty ImageHeightProperty

ImagePositionProperty

BindableProperty

Identifies the ImagePosition property.

C#
public static readonly BindableProperty ImagePositionProperty

ImageSourceProperty

BindableProperty

Identifies the ImageSource property.

C#
public static readonly BindableProperty ImageSourceProperty

ImageSpacingProperty

BindableProperty

Identifies the ImageSpacing property.

C#
public static readonly BindableProperty ImageSpacingProperty

ImageWidthProperty

BindableProperty

Identifies the ImageWidth property.

C#
public static readonly BindableProperty ImageWidthProperty

TextColorProperty

BindableProperty

Identifies the TextColor property.

C#
public static readonly BindableProperty TextColorProperty

TextDecorationsProperty

BindableProperty

Identifies the TextDecorations property.

C#
public static readonly BindableProperty TextDecorationsProperty

TextProperty

BindableProperty

Identifies the Text property.

C#
public static readonly BindableProperty TextProperty

Identifies the VerticalContentOptions property.

C#
public static readonly BindableProperty VerticalContentOptionsProperty

Identifies the VerticalTextAlignment property.

C#
public static readonly BindableProperty VerticalTextAlignmentProperty

Properties

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.

C#
public ImageSource ActualImageSource { get; }

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

C#
public ToolbarItemDisplayOptions DisplayOptions { get; set; }

FontAttributes

FontAttributes

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

C#
public FontAttributes FontAttributes { get; set; }

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

C#
public string FontFamily { get; set; }

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

C#
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

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

C#
public LayoutOptions HorizontalContentOptions { get; set; }

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

C#
public TextAlignment HorizontalTextAlignment { get; set; }

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

C#
public Aspect ImageAspect { get; set; }

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

C#
public double ImageHeight { get; set; }

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

C#
public ToolbarItemImagePosition ImagePosition { get; set; }

ImageSource

ImageSource

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

C#
public ImageSource ImageSource { get; set; }

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

C#
public double ImageSpacing { get; set; }

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

C#
public double ImageWidth { get; set; }

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

C#
public string Text { get; set; }

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

C#
public Color TextColor { get; set; }

TextDecorations

TextDecorations

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

C#
public TextDecorations TextDecorations { get; set; }

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

C#
public LayoutOptions VerticalContentOptions { get; set; }

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

C#
public TextAlignment VerticalTextAlignment { get; set; }