.NET MAUI ImageEditor Toolbar
The ImageEditorToolbar for .NET MAUI includes items for editing the image in the ImageEditor, alternatively you can customize the shown editing options according to your needs.
The Toolbar is part of Telerik UI for .NET MAUI, the most comprehensive UI suite for .NET MAUI! To try it out, sign up for a free 30-day trial and kickstart your cross-platform app development today.
Configuration of the ImageEditorToolbar
RadImageEditorToolbar
inherits from the RadToolbar. All properties for configuration and styling available for the RadToolbar
apply to the RadImageEditorToolbar
.
The configuration properties are described below
- Attach the
RadImageEditorToolbar
to theRadImageEditor
control by setting theImageEditor
(of typeRadImageEditor
)property.
<Grid RowDefinitions="Auto,*">
<telerik:RadImageEditorToolbar ImageEditor="{x:Reference imageEditor}"/>
<telerik:RadImageEditor x:Name="imageEditor" Grid.Row="1"/>
</Grid>
By default the items in the
ImageEditorToolbar
are auto-populated. You can change this by setting theRadImageEditorToolbar.AutoGenerateItems
(of typebool
) toFalse
. The default value isTrue
.By setting the
Orientation
(enum of typeTelerik.Maui.Controls.ToolbarOrientation
) property you can specify the orientation of the toolbar. The available options areHorizontal
andVertical
. The default value isHorizontal.
-
OptionsPanel
(Telerik.Maui.Controls.RadToolbarOptionsPanel
)—Specifies the options panel associated with this toolbar. -
ItemSpacing
(double
)—Specifies the spacing in pixels between the items in the toolbar. The default value is8
. -
LineSpacing
(double
)—Specifies the spacing in pixels between the lines of items in the toolbar. This property has effect when the toolbar is in a multi-line wrap overflow mode. The default value is8
.
Configuration of the Overflow Menu
-
OverflowMode
(enum of typeTelerik.Maui.Controls.ToolbarOverflowMode
)—Specifies the overflow mode when the items in the toolbar cannot fit in the available space. The available options are:-
DropDown
(the default mode)—When the toolbar items cannot fit in the available space, they are placed in the overflow drop-down menu. -
Scroll
—When the toolbar items cannot fit in the available space, they are scrolled horizontally or vertically, based on the orientation of the toolbar. -
Wrap
—When the toolbar items cannot fit in the available space, they are wrapped horizontally or vertically on multiple lines, based on the orientation of the toolbar.
-
-
OverflowMenuButtonVisibility
(enum of typeTelerik.Maui.Controls.ToolbarButtonVisibilityMode
)—Specifies the visibility mode of the overflow menu button in the toolbar. The available options are:-
Auto
(the default mode)—The button visibility is determined automatically, based on the associated command. -
Visible
(the default mode)—The button is always visible in the toolbar, regardless of the associated command. -
Hidden
(the default mode)—The button is always hidden from the toolbar, regardless of the associated command.
-
OverflowMenuButtonTemplate
(ControlTemplate
)—Defines theControlTemplate
applied to the overflow menu button in the toolbar.-
OverflowMenuButtonStyle
(Style
with target typeTelerik.Maui.Controls.OverflowMenuButtonToolbarItemView
)—Specifies the style applied to the Overflow menu button.
Configuration of the back navigation button
-
BackNavigationButtonVisibility
(enum of typeTelerik.Maui.Controls.ToolbarButtonVisibilityMode
)—Specifies the visibility mode of the back navigation button in the toolbar. The available options are:-
Auto
(the default mode)—The button visibility is determined automatically, based on the associated command. -
Visible
(the default mode)—The button is always visible in the toolbar, regardless of the associated command. -
Hidden
(the default mode)—The button is always hidden from the toolbar, regardless of the associated command.
-
BackNavigationButtonTemplate
(ControlTemplate
)—Defines theControlTemplate
applied to the back navigation button in the toolbar.-
BackNavigationButtonStyle
(Style
with target typeTelerik.Maui.Controls.BackNavigationButtonToolbarItemView
)—Specifies the style applied to the back navigation button.
Configuration for the Scroll Button, Scroll Forward and Backward Buttons
-
ScrollButtonsVisibility
(enum of typeTelerik.Maui.Controls.ToolbarButtonVisibilityMode
)—Specifies the visibility mode of the scroll buttons in the toolbar. The available options are:-
Auto
(the default mode)—The button visibility is determined automatically, based on the associated command. -
Visible
(the default mode)—The button is always visible in the toolbar, regardless of the associated command. -
Hidden
(the default mode)—The button is always hidden from the toolbar, regardless of the associated command.
-
ScrollForwardButtonTemplate
(ControlTemplate
)—Defines theControlTemplate
applied to the forward scroll button in the toolbar.-
ScrollForwardButtonStyle
(Style
with target typeTelerik.Maui.Controls.ScrollForwardButtonToolbarItemView
)—Defines the style applied to the forward scroll button in the toolbar. -
ScrollBackwardButtonTemplate
(ControlTemplate
)—Defines theControlTemplate
applied to the backward scroll button in the toolbar. -
ScrollBackwardButtonStyle
(Style
with target typeTelerik.Maui.Controls.ScrollBackwardButtonToolbarItemView
)—Defines the style applied to the backward scroll button in the toolbar.