Class SimpleToolBarView
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
- 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.
- DefaultDisabledTextColorDark
Gets ot sets default disabled text color for dark theme.
- DefaultDisabledTextColorLight
Gets ot sets default disabled text color for light theme.
- DefaultHotBorderColorDark
Gets ot sets default hot border color for dark theme.
- DefaultHotBorderColorLight
Gets ot sets default hot border color for light theme.
- 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.
- DefaultPressedBorderColorDark
Gets ot sets default pressed border color for dark theme.
- DefaultPressedBorderColorLight
Gets ot sets default pressed border color for light theme.
- DefaultSeparatorColorDark
Gets or sets the default toolbar separator color in dark theme.
- DefaultSeparatorColorLight
Gets or sets the default toolbar separator color in light theme.
- DefaultSeparatorMargin
Gets or sets the default margin of the toolbar separator.
- DefaultSeparatorWidth
Gets or sets the default width of the toolbar separator.
- DefaultStickyUnderlineColorDark
Gets or sets the default underline color for sticky buttons in dark theme.
- DefaultStickyUnderlineColorLight
Gets or sets the default underline color for sticky buttons in light theme.
- DefaultStickyUnderlineMargin
Gets or sets the default margin of the sticky button underline.
- DefaultStickyUnderlineSize
Gets or sets the default size of the sticky button underline.
- DefaultTextColorDark
Gets ot sets default text color for dark theme.
- DefaultTextColorLight
Gets ot sets default text color for light theme.
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.
- FirstItemAsView
Gets the first item in the toolbar as View, or null if the toolbar is empty.
- 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.
- StickyStyle
Gets or sets the style of the sticky buttons.
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.
- 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.
- 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.
- GetHotBorderColor()
Gets the hot border color based on the current theme.
- 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.
- 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.