Table of Contents

Class SimpleToolBarView

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

Represents a simple toolbar view with speed buttons and other controls.

public class SimpleToolBarView : BaseContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IRaiseSystemColorsChanged
Inheritance
SimpleToolBarView
Implements
Derived

Constructors

SimpleToolBarView()

Initializes a new instance of the SimpleToolBarView class.

Fields

ButtonDisabledState

Provides the visual state setters for a button in the disabled state.

ButtonHotState

Provides the visual state setters for a button when it is in the hot (hovered) state.

ButtonNormalState

Provides the default visual state setters for a button in its normal (enabled and unpressed) state.

ButtonNormalStickyState

Provides the visual state setters for a button in its normal sticky state.

ButtonPressedState

Provides the set of visual state setters applied to a button when it is in the pressed state.

ButtonStickyDisabledState

Provides the visual state setters for a button in the sticky disabled state.

DefaultBorderWidth

Gets or sets the default width of the toolbar border.

DefaultButtonBorderWidth

Gets ot sets default button border width.

DefaultButtonContainerPadding

Represents the default padding applied to button containers.

DefaultButtonMargin

Gets or sets the default margin for buttons.

DefaultButtonPadding

Represents the default padding applied to button.

DefaultImageButtonSize

Gets ot sets default size of the button image on mobile platform.

DefaultImageButtonSizeDesktop

Gets ot sets default size of the button image on desktop platform.

DefaultSeparatorMargin

Gets or sets the default margin of the toolbar separator.

DefaultSeparatorWidth

Gets or sets the default width of the toolbar separator.

DefaultStickyUnderlineMargin

Gets or sets the default margin of the sticky button underline.

DefaultStickyUnderlineSize

Gets or sets the default size of the sticky button underline.

Properties

AllowMultipleSticky

Gets pr sets a value indicating whether multiple sticky buttons are allowed in the toolbar.

Buttons

Gets the collection of buttons in the toolbar.

DefaultNextTabImage

Gets or sets the default SVG image for the 'Next Tab' button.

DefaultPreviousTabImage

Gets or sets the default SVG image for the 'Previous Tab' button.

FirstItem

Gets the first item in the toolbar, or null if the toolbar is empty.

FirstItemAsView

Gets the first item in the toolbar as View, or null if the toolbar is empty.

FirstNonSpecialItem

Gets the first non-special item in the toolbar, or null if none found.

IsBoldWhenSticky

Gets or sets a value indicating whether toolbar items should appear bold when in a sticky state.

IsBottomBorderVisible

Gets or sets a value indicating whether the bottom border is visible.

IsTopBorderVisible

Gets or sets a value indicating whether the top border is visible.

LastItem

Gets the last item in the toolbar, or null if the toolbar is empty.

StickyStyle

Gets or sets the style of the sticky buttons.

TabFontFamily

Gets or sets the font family name used for tab text rendering.

TabFontSize

Gets or sets the font size used for tab text rendering.

Methods

AddButton(string?, string?, SvgImage?, Action?)

Adds a button to the toolbar.

AddButtonCancel(Action?)

Adds a 'Cancel' button to the toolbar.

AddButtonOk(Action?)

Adds an 'Ok' button to the toolbar.

AddDialogButton(string?, string?, SvgImage?, Action?)

Adds a button with the border in the normal state to the toolbar.

AddExpandingSpace()

Adds an expanding space to the toolbar.

AddLabel(string?, string?, SvgImage?, Action?)

Adds a label to the toolbar.

AddMoreActionsButton(Action?)

Adds a "More Actions" button to the toolbar, optionally specifying a callback to invoke when the button is clicked.

AddNextAndPreviousTabButtons(AddNextAndPreviousTabButtonsFlags, NextAndPreviousTabButtonsParams?)

Adds 'Next Tab' and 'Previous Tab' buttons to the toolbar. These buttons allow navigation between tabs which is useful on mobile devices.

AddPicture(SvgImage?, Action?)

Adds a picture to the toolbar.

AddSeparator()

Adds a separator to the toolbar.

AddStickyButton(string?, string?, SvgImage?, Action?)

Adds a sticky button to the toolbar.

CreateToolBarBorder()

Creates a visual border for a toolbar.

FirstToLast()

Moves the first button in the toolbar to the last position. This method ignores special buttons (e.g., 'Next Tab' and 'Previous Tab' buttons).

GetButton(ObjectUniqueId)

Gets a button from the toolbar by its unique identifier.

GetButtonBorder()

Gets the button border width.

GetDefaultImageSize()

Gets the default size of the button image based on the device type.

GetDisabledTextColor()

Gets the disabled text color based on the current theme.

GetFirstNonSpecialButtonIndex()

Returns the index of the first button in the toolbar that is not marked as special.

GetHotBorderColor()

Gets the hot border color based on the current theme.

GetItemIndex(IToolBarItem?)

Gets the index of the specified toolbar item.

GetLastNonSpecialButtonIndex()

Gets the index of the last non-special button in the toolbar.

GetNonSpecialButtonsCount()

Returns the number of toolbar buttons that are classified as normal (non-special) buttons.

GetPressedBorderColor()

Gets the pressed border color based on the current theme.

GetSeparatorColor()

Gets the default toolbar separator color based on the current theme.

GetTextColor()

Gets the text color based on the current theme.

InsertButton(int, string?, string?, SvgImage?, Action?)

Inserts a button into the toolbar at the specified index.

IsFullyVisible(IToolBarItem?)

Determines whether the specified toolbar item is fully visible.

LastToFirst()

Moves the last button in the toolbar to the first position. This method ignores special buttons (e.g., 'Next Tab' and 'Previous Tab' buttons).

MakeItemFirst(IToolBarItem?)

Moves the specified toolbar item to the first position.

OnTabFontChanged()

Called when the tab font properties change.

RaiseSystemColorsChanged()

Updates visual style of the control when the system colors are changed.

Remove(IToolBarItem?)

Removes a toolbar item.

Events

SystemColorsChanged

Occurs when the system colors change.